add option to build and run this repo using nix
This commit is contained in:
parent
c9cb1bb2d8
commit
f921077964
14
flake.nix
14
flake.nix
@ -8,6 +8,20 @@
|
||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||
{
|
||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||
|
||||
packages.default = pkgs.buildGoModule {
|
||||
pname = "age-passgen";
|
||||
version = "unversioned";
|
||||
|
||||
src = ./.;
|
||||
|
||||
vendorHash = "sha256-Y6R8c9PzRq0tJ0b06f0LuFfrdFvxQ7h/86a6gg6UOro=";
|
||||
};
|
||||
|
||||
apps.default = {
|
||||
type = "app";
|
||||
program = "${self.packages.${system}.default}/bin/age-passgen";
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user