mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-04 06:05:59 +00:00
Use jdk11 in nix packages
This commit is contained in:
parent
f18b763dee
commit
b57ceb6764
10
nix/pkg.nix
10
nix/pkg.nix
@ -1,4 +1,4 @@
|
||||
cfg: {stdenv, fetchzip, file, curl, inotifyTools, fetchurl, jre8, bash}:
|
||||
cfg: {stdenv, fetchzip, file, curl, inotifyTools, fetchurl, jdk11, bash}:
|
||||
let
|
||||
meta = with stdenv.lib; {
|
||||
description = "Docspell helps to organize and archive your paper documents.";
|
||||
@ -12,7 +12,7 @@ in
|
||||
|
||||
src = fetchzip cfg.server;
|
||||
|
||||
buildInputs = [ jre8 ];
|
||||
buildInputs = [ jdk11 ];
|
||||
|
||||
buildPhase = "true";
|
||||
|
||||
@ -21,7 +21,7 @@ in
|
||||
cp -R * $out/docspell-restserver-${cfg.version}/
|
||||
cat > $out/bin/docspell-restserver <<-EOF
|
||||
#!${bash}/bin/bash
|
||||
$out/docspell-restserver-${cfg.version}/bin/docspell-restserver -java-home ${jre8} "\$@"
|
||||
$out/docspell-restserver-${cfg.version}/bin/docspell-restserver -java-home ${jdk11} "\$@"
|
||||
EOF
|
||||
chmod 755 $out/bin/docspell-restserver
|
||||
'';
|
||||
@ -34,7 +34,7 @@ in
|
||||
|
||||
src = fetchzip cfg.joex;
|
||||
|
||||
buildInputs = [ jre8 ];
|
||||
buildInputs = [ jdk11 ];
|
||||
|
||||
buildPhase = "true";
|
||||
|
||||
@ -43,7 +43,7 @@ in
|
||||
cp -R * $out/docspell-joex-${cfg.version}/
|
||||
cat > $out/bin/docspell-joex <<-EOF
|
||||
#!${bash}/bin/bash
|
||||
$out/docspell-joex-${cfg.version}/bin/docspell-joex -java-home ${jre8} "\$@"
|
||||
$out/docspell-joex-${cfg.version}/bin/docspell-joex -java-home ${jdk11} "\$@"
|
||||
EOF
|
||||
chmod 755 $out/bin/docspell-joex
|
||||
'';
|
||||
|
Loading…
x
Reference in New Issue
Block a user