2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-12-01 17:55:48 +00:00
|
|
|
, fetchurl
|
|
|
|
, fetchzip
|
|
|
|
, autoPatchelfHook
|
2020-12-13 10:42:42 +00:00
|
|
|
, makeWrapper
|
|
|
|
, jdk
|
2020-12-01 17:55:48 +00:00
|
|
|
, libsecret
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "Archi";
|
|
|
|
version = "4.7.1";
|
|
|
|
|
|
|
|
src =
|
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
|
|
|
url = "https://www.archimatetool.com/downloads/archi/Archi-Linux64-${version}.tgz";
|
|
|
|
sha256 = "0sd57cfnh5q2p17sd86c8wgmqyipg29rz6iaa5brq8mwn8ps2fdw";
|
|
|
|
}
|
|
|
|
else if stdenv.hostPlatform.system == "x86_64-darwin" then
|
|
|
|
fetchzip {
|
|
|
|
url = "https://www.archimatetool.com/downloads/archi/Archi-Mac-${version}.zip";
|
|
|
|
sha256 = "1h05lal5jnjwm30dbqvd6gisgrmf1an8xf34f01gs9pwqvqfvmxc";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
throw "Unsupported system";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libsecret
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-12-13 10:42:42 +00:00
|
|
|
makeWrapper
|
2022-03-22 17:59:05 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
|
2020-12-01 17:55:48 +00:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
|
|
|
''
|
2020-12-13 10:42:42 +00:00
|
|
|
mkdir -p $out/bin $out/libexec
|
|
|
|
for f in configuration features p2 plugins Archi.ini; do
|
|
|
|
cp -r $f $out/libexec
|
2020-12-01 17:55:48 +00:00
|
|
|
done
|
|
|
|
|
2020-12-13 10:42:42 +00:00
|
|
|
install -D -m755 Archi $out/libexec/Archi
|
|
|
|
makeWrapper $out/libexec/Archi $out/bin/Archi \
|
|
|
|
--prefix PATH : ${jdk}/bin
|
2020-12-01 17:55:48 +00:00
|
|
|
''
|
|
|
|
else
|
|
|
|
''
|
|
|
|
mkdir -p "$out/Applications"
|
|
|
|
mv Archi.app "$out/Applications/"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-01 17:55:48 +00:00
|
|
|
description = "ArchiMate modelling toolkit";
|
|
|
|
longDescription = ''
|
|
|
|
Archi is an open source modelling toolkit to create ArchiMate
|
|
|
|
models and sketches.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.archimatetool.com/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2022-06-01 11:43:07 +01:00
|
|
|
maintainers = with maintainers; [ earldouglas ];
|
2020-12-01 17:55:48 +00:00
|
|
|
};
|
|
|
|
}
|