Merge pull request #106814 from freezeboy/unbreak-archi

archi: unbreak build
This commit is contained in:
Sandro 2021-01-20 14:40:11 +01:00 committed by GitHub
commit 9a3761b663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,8 @@
, fetchurl
, fetchzip
, autoPatchelfHook
, makeWrapper
, jdk
, libsecret
}:
@ -29,17 +31,20 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoPatchelfHook
makeWrapper
];
installPhase =
if stdenv.hostPlatform.system == "x86_64-linux" then
''
mkdir -p $out/bin
for f in configuration features p2 plugins Archi.ini Archi; do
cp $f $out/bin/
mkdir -p $out/bin $out/libexec
for f in configuration features p2 plugins Archi.ini; do
cp -r $f $out/libexec
done
install -D -m755 Archi $out/bin/Archi
install -D -m755 Archi $out/libexec/Archi
makeWrapper $out/libexec/Archi $out/bin/Archi \
--prefix PATH : ${jdk}/bin
''
else
''