-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
147 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
formatters = [ | ||
"alejandra", | ||
"nixfmt", | ||
] | ||
|
||
[formatter.alejandra] | ||
command = "alejandra" | ||
[formatter.nixfmt] | ||
command = "nixfmt" | ||
includes = ["*.nix"] | ||
options = [] | ||
options = ["-v"] | ||
priority = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,28 @@ | ||
{ | ||
stdenv, | ||
jdk17_headless, | ||
lib, | ||
callPackage, | ||
}: let | ||
jdk = jdk17_headless; | ||
in | ||
stdenv.mkDerivation { | ||
pname = "${jdk.pname}-minimal-jre"; | ||
version = jdk.version; | ||
{ stdenv, jdk17_headless, lib, callPackage, }: | ||
let jdk = jdk17_headless; | ||
in stdenv.mkDerivation { | ||
pname = "${jdk.pname}-minimal-jre"; | ||
version = jdk.version; | ||
|
||
buildInputs = [jdk]; | ||
buildInputs = [ jdk ]; | ||
|
||
dontUnpack = true; | ||
dontUnpack = true; | ||
|
||
# Strip more heavily than the default '-S', since if you're | ||
# using this derivation you probably care about this. | ||
stripDebugFlags = ["--strip-unneeded"]; | ||
# Strip more heavily than the default '-S', since if you're | ||
# using this derivation you probably care about this. | ||
stripDebugFlags = [ "--strip-unneeded" ]; | ||
|
||
buildPhase = '' | ||
runHook preBuild | ||
buildPhase = '' | ||
runHook preBuild | ||
mkdir modpath | ||
ln -s ${jdk}/lib/openjdk/jmods/* modpath | ||
# jpackage includes path references to the base JDK in some native binaries | ||
rm modpath/jdk.jpackage.jmod | ||
jlink --module-path modpath --add-modules ALL-MODULE-PATH --compress=2 --output $out | ||
mkdir modpath | ||
ln -s ${jdk}/lib/openjdk/jmods/* modpath | ||
# jpackage includes path references to the base JDK in some native binaries | ||
rm modpath/jdk.jpackage.jmod | ||
jlink --module-path modpath --add-modules ALL-MODULE-PATH --compress=2 --output $out | ||
runHook postBuild | ||
''; | ||
runHook postBuild | ||
''; | ||
|
||
dontInstall = true; | ||
} | ||
dontInstall = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
final: prev: let | ||
final: prev: | ||
let | ||
inherit (final) callPackage lib; | ||
inherit (lib) recurseIntoAttrs; | ||
in { | ||
pissfactory = recurseIntoAttrs (callPackage ./packages.nix {}); | ||
} | ||
in { pissfactory = recurseIntoAttrs (callPackage ./packages.nix { }); } |
Oops, something went wrong.