mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #106814 from freezeboy/unbreak-archi
archi: unbreak build
This commit is contained in:
commit
9a3761b663
@ -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
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user