Skip to content

Commit

Permalink
basil: remove jre/jdk override
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Dec 7, 2024
1 parent 62de88d commit 2b17325
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions basil/basil.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
, fetchFromGitHub
, mkSbtDerivation
, makeBinaryWrapper
, jdk
, jre
, sbt
, jdk17
, testers
, basil
, protobuf
Expand All @@ -14,12 +14,13 @@ let
substituteInPlace build.sbt \
--replace-fail 'PROTOC_PLACEHOLDER' '${lib.getExe protobuf}'
'';
mkSbtDerivation' = mkSbtDerivation.withOverrides { sbt = sbt.override { jre = jdk17; }; };
in
mkSbtDerivation {
mkSbtDerivation' {
pname = "basil";
version = "0.1.2-alpha-unstable-2024-11-13";

nativeBuildInputs = [ jdk makeBinaryWrapper ];
nativeBuildInputs = [ makeBinaryWrapper ];

src = fetchFromGitHub {
owner = "UQ-PAC";
Expand All @@ -42,7 +43,6 @@ mkSbtDerivation {
buildPhase = ''
runHook preBuild
javac -version
sbt assembly
runHook postBuild
Expand All @@ -66,7 +66,7 @@ mkSbtDerivation {
cp -v "$JAR" $out/share/basil/$(basename $JAR)
# make wrapper to run jar with appropriate arguments
makeWrapper "${lib.getExe jre}" $out/bin/basil \
makeWrapper "${lib.getExe jdk17}" $out/bin/basil \
--add-flags -jar \
--add-flags "$out/share/basil/$(basename $JAR)"
Expand Down
3 changes: 0 additions & 3 deletions basil/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ let
compiler-explorer = (prev.callPackage ./compiler-explorer.nix { });
godbolt = (prev.callPackage ./godbolt.nix { });
basil-tool = prev.callPackage ./basil-tool.nix { };

jre = final.temurin-jre-bin-17;
jdk = final.temurin-bin-17;
};
in
final: prev:
Expand Down

0 comments on commit 2b17325

Please sign in to comment.