nitropy as attribute

This commit is contained in:
Denis Knauf 2023-05-25 17:18:01 +02:00
parent a5fbe03b27
commit cb3049ec84

View file

@ -2,13 +2,14 @@
{ {
description = "nitropy cli"; description = "nitropy cli";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05-small; inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05-small;
outputs = { self, nixpkgs }: { outputs = { self, nixpkgs }: rec {
defaultPackage.x86_64-linux = nitropy =
# Notice the reference to nixpkgs here. # Notice the reference to nixpkgs here.
with import nixpkgs { with import nixpkgs {
system = "x86_64-linux"; system = "x86_64-linux";
config.allowUnfree = true; config.allowUnfree = true;
}; };
callPackage ./pynitrokey.nix { }; callPackage ./pynitrokey.nix { };
defaultPackage.x86_64-linux = nitropy;
}; };
} }