From cb3049ec848de5a101f65dfa36f825222baee2aa Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Thu, 25 May 2023 17:18:01 +0200 Subject: [PATCH] nitropy as attribute --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 586e1b8..379236b 100644 --- a/flake.nix +++ b/flake.nix @@ -2,13 +2,14 @@ { description = "nitropy cli"; inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05-small; - outputs = { self, nixpkgs }: { - defaultPackage.x86_64-linux = + outputs = { self, nixpkgs }: rec { + nitropy = # Notice the reference to nixpkgs here. with import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; }; callPackage ./pynitrokey.nix { }; + defaultPackage.x86_64-linux = nitropy; }; }