diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/archi/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/archi/default.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/tools/misc/archi/default.nix b/nixpkgs/pkgs/tools/misc/archi/default.nix index 41562ccbf711..d0beb7d40d75 100644 --- a/nixpkgs/pkgs/tools/misc/archi/default.nix +++ b/nixpkgs/pkgs/tools/misc/archi/default.nix @@ -1,7 +1,9 @@ -{ stdenv +{ lib, stdenv , 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 '' @@ -47,7 +52,7 @@ stdenv.mkDerivation rec { mv Archi.app "$out/Applications/" ''; - meta = with stdenv.lib; { + meta = with lib; { description = "ArchiMate modelling toolkit"; longDescription = '' Archi is an open source modelling toolkit to create ArchiMate |