3
0
Fork 0
forked from mirrors/nixpkgs

archi: init at 4.7.1 (#103355)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
James Earl Douglas 2020-12-01 10:55:48 -07:00 committed by GitHub
parent 2d55b8def4
commit 1a3557f729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,61 @@
{ stdenv
, fetchurl
, fetchzip
, autoPatchelfHook
, 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 = [
autoPatchelfHook
];
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/
done
install -D -m755 Archi $out/bin/Archi
''
else
''
mkdir -p "$out/Applications"
mv Archi.app "$out/Applications/"
'';
meta = with stdenv.lib; {
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;
maintainers = with maintainers; [ earldouglas SuperSandro2000 ];
};
}

View file

@ -701,6 +701,8 @@ in
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa Kernel;
};
archi = callPackage ../tools/misc/archi { };
cool-retro-term = libsForQt5.callPackage ../applications/terminal-emulators/cool-retro-term { };
eterm = callPackage ../applications/terminal-emulators/eterm { };