chore: update default.nix to actually build and work now + add vendor hash

This commit is contained in:
Slug-Boi
2025-04-29 09:24:27 +02:00
parent cdefb84b88
commit 6c198447ba
+3 -4
View File
@@ -11,18 +11,17 @@ buildGoModule rec {
sha256 = "sha256-mSu9IW14y4vgvV3/N4EG9oMvB5eTfcneF03kMmHMXIU=";
};
vendorHash = null;
vendorHash = "sha256-GcRGae42KiqMhxc2Q7Ct+uJ4Wg2odUEwWyXffamOjWY=";
buildPhase = ''
go mod vendor
make build-nix
make build
'';
doCheck = false;
installPhase = ''
mkdir -p $out/bin
cp "src_code/go_src/${pname}" "$out/bin/${pname}"
cp "src/${pname}" "$out/bin/${pname}"
chmod +x $out/bin/${pname}
'';