2023-10-09 19:29:22 +00:00
|
|
|
{ stdenvNoCC
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, electron
|
|
|
|
, makeWrapper
|
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "camunda-modeler";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "5.23.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/camunda/camunda-modeler/releases/download/v${version}/camunda-modeler-${version}-linux-x64.tar.gz";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-x63UMIl0Wsr4qSEn19Of135PHKlpEVAZzhA2+ZjxNwY=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
sourceRoot = "camunda-modeler-${version}-linux-x64";
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
copyDesktopItems
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin $out/share/${pname}
|
|
|
|
cp -a {locales,resources} $out/share/${pname}
|
|
|
|
install -Dm644 support/mime-types.xml $out/share/mime/packages/${pname}.xml
|
|
|
|
|
|
|
|
for SIZE in 16 48 128; do
|
|
|
|
install -D -m0644 support/icon_''${SIZE}.png "$out/share/icons/hicolor/''${SIZE}x''${SIZE}/apps/${pname}.png"
|
|
|
|
done
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
makeWrapper ${electron}/bin/electron $out/bin/${pname} \
|
|
|
|
--add-flags $out/share/${pname}/resources/app.asar
|
|
|
|
'';
|
|
|
|
|
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = pname;
|
|
|
|
exec = pname;
|
|
|
|
desktopName = "Camunda Modeler";
|
|
|
|
icon = pname;
|
|
|
|
keywords = [ "bpmn" "cmmn" "dmn" "form" "modeler" "camunda"];
|
|
|
|
genericName = "Process Modeling Tool";
|
|
|
|
comment = meta.description;
|
|
|
|
mimeTypes = [ "application/bpmn" "application/cmmn" "application/dmn" "application/camunda-form" ];
|
|
|
|
extraConfig = {
|
|
|
|
X-Ayatana-Desktop-Shortcuts = "NewWindow;RepositoryBrowser";
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/camunda/camunda-modeler";
|
|
|
|
description = "An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io";
|
|
|
|
maintainers = teams.wdz.members;
|
|
|
|
license = licenses.mit;
|
|
|
|
inherit (electron.meta) platforms;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "camunda-modeler";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|