Skip to content

Commit

Permalink
basil: more robust protoc patch
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Feb 20, 2025
1 parent 1bd97f0 commit e30115d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
13 changes: 0 additions & 13 deletions basil/0001-basil-protoc-version.patch

This file was deleted.

7 changes: 4 additions & 3 deletions basil/basil.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@

let
replaceProtocPlaceholder = ''
substituteInPlace build.sbt \
--replace-fail 'PROTOC_PLACEHOLDER' '${lib.getExe protobuf}'
cat <<EOF >> build.sbt
PB.protocExecutable := file("${lib.getExe protobuf}")
EOF
'';
mkSbtDerivation' = mkSbtDerivation.withOverrides { sbt = sbt.override { jre = jdk17; }; };
in
Expand All @@ -29,7 +30,7 @@ mkSbtDerivation' {
sha256 = "sha256-yFylN1C6HK32tsokNr0UDhSNESOFOE+abYh3ZLBPEvU=";
};

patches = [ ./0001-basil-protoc-version.patch ] ;
patches = [ ] ;

# we must run the command in both the main derivation
# and the dependency-generating derivation.
Expand Down

0 comments on commit e30115d

Please sign in to comment.