Skip to content

Commit e3d2101

Browse files
committed
fix: use builtins.fetchGit for kilobase source (no hash needed)
1 parent 6c7070d commit e3d2101

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

nix/ext/kilobase.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
lib,
33
stdenv,
44
callPackages,
5-
fetchFromGitHub,
65
postgresql,
76
rust-bin,
87
}:
@@ -17,12 +16,10 @@ let
1716
inherit rustVersion pgrxVersion;
1817
};
1918

20-
src = fetchFromGitHub {
21-
owner = "KBVE";
22-
repo = "kbve";
19+
src = builtins.fetchGit {
20+
url = "https://github.com/KBVE/kbve.git";
2321
rev = "c686ba886f9fd8b87ed9b049264f8602a70706e4";
24-
# Run `nix build` once to get the correct hash from the error output
25-
hash = lib.fakeHash;
22+
shallow = true;
2623
};
2724
in
2825
mkPgrxExtension {
@@ -40,9 +37,11 @@ mkPgrxExtension {
4037

4138
cargoLock = {
4239
lockFile = "${src}/Cargo.lock";
43-
allowBuiltinFetchGit = false;
40+
allowBuiltinFetchGit = true;
4441
};
4542

43+
buildFeatures = [ "pg17" ];
44+
4645
CARGO = "${cargo}/bin/cargo";
4746

4847
env = lib.optionalAttrs stdenv.isDarwin {
@@ -51,6 +50,7 @@ mkPgrxExtension {
5150
};
5251

5352
doCheck = false;
53+
auditable = false;
5454

5555
meta = with lib; {
5656
description = "Kilobase PostgreSQL extension";

0 commit comments

Comments
 (0)