spacetimedb: add git to nativeBuildInputs to remove patch (#407397)

This commit is contained in:
Toma
2025-05-15 23:45:19 +02:00
committed by GitHub
+1 -5
View File
@@ -24,13 +24,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
nativeBuildInputs = [
pkg-config
perl
git
];
# Replace hardcoded git binary
postPatch = ''
substituteInPlace crates/cli/build.rs --replace-fail 'Command::new("git")' 'Command::new("${lib.getExe git}")'
'';
cargoBuildFlags = [ "-p spacetimedb-standalone -p spacetimedb-cli" ];
checkFlags = [