scan-to-gpg/flake.nix
2024-11-24 19:44:37 +01:00

29 lines
590 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }: {
packages = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: let
pkgs = import nixpkgs {
inherit system;
};
in rec {
scan-to-gpg = pkgs.buildGoModule {
pname = "scan-to-gpg";
version = "0.0.1";
src = ./.;
vendorHash = "sha256-SrsjcNtqQdE8Gekjn72JhCysfNmKJs7ju2BcKnOQf/U=";
};
default = scan-to-gpg;
});
hydraJobs = {
inherit (self)
packages;
};
};
}