dbqn: 0.pre+unstable=2021-10-05 -> 0.pre+date=2021-10-08
This commit is contained in:
parent
504fff7a3b
commit
84e726be47
1 changed files with 10 additions and 7 deletions
|
@ -8,31 +8,34 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dbqn" + lib.optionalString buildNativeImage "-native";
|
pname = "dbqn" + lib.optionalString buildNativeImage "-native";
|
||||||
version = "0.pre+unstable=2021-10-05";
|
version = "0.pre+date=2021-10-08";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dzaima";
|
owner = "dzaima";
|
||||||
repo = "BQN";
|
repo = "BQN";
|
||||||
rev = "c31ceef52bbf380e747723f5ffd09c5f006b21c5";
|
rev = "0001109a1c5a420421b368c79d34b1e93bfe606e";
|
||||||
sha256 = "1nzqgwpjawcky85mfrz5izs9lfb3aqlm96dc8syrxhgg20xrziwx";
|
hash = "sha256-riHHclTLkrVbtzmcz9ungAIc7kaoFHS77+SNatsfNhc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
makeWrapper
|
|
||||||
jdk
|
jdk
|
||||||
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs --build ./build8
|
||||||
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
patchShebangs --build ./build8
|
|
||||||
./build8
|
./build8
|
||||||
'' + lib.optionalString buildNativeImage ''
|
'' + lib.optionalString buildNativeImage ''
|
||||||
native-image --report-unsupported-elements-at-runtime \
|
native-image --report-unsupported-elements-at-runtime \
|
||||||
-H:CLibraryPath=${lib.getLib jdk}/lib \
|
-H:CLibraryPath=${lib.getLib jdk}/lib -J-Dfile.encoding=UTF-8 \
|
||||||
-J-Dfile.encoding=UTF-8 -jar BQN.jar dbqn
|
-jar BQN.jar dbqn
|
||||||
'' + ''
|
'' + ''
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue