intake/package.nix

37 lines
559 B
Nix

{
buildGoModule,
jq,
lib,
gitRev ? "0000000000000000000000000000000000000000"
}:
let
inherit (lib.fileset)
toSource
unions
;
in
buildGoModule {
pname = "intake";
version = "2.0.0";
src = toSource {
root = ./.;
fileset = unions [
./cmd
./core
./go.mod
./go.sum
./main.go
./web
];
};
vendorHash = "sha256-sv4rlURaTatxJ5atYWYzD2O4EiuPp66i0RY5lQzhBKU=";
ldflags = [
"-X github.com/Jaculabilis/intake/core.Commit=${gitRev}"
];
nativeBuildInputs = [ jq ];
meta = { };
}