scan-to-gpg/flake.nix

38 lines
761 B
Nix
Raw Permalink Normal View History

2024-11-24 19:44:37 +01:00
{
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=";
2024-11-24 20:39:16 +01:00
meta = {
mainProgram = "scan-to-gpg";
};
2024-11-24 19:44:37 +01:00
};
default = scan-to-gpg;
});
2024-11-24 20:39:16 +01:00
nixosModules = rec {
scan-to-gpg = import ./module.nix;
default = scan-to-gpg;
};
2024-11-24 19:44:37 +01:00
hydraJobs = {
inherit (self)
packages;
};
};
}