diff options
author | Ember Keske <ember.keske@wobcom.de> | 2023-08-01 16:08:54 +0200 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-09-09 19:36:33 +0200 |
commit | 96942dd1d5589026d338fd257eb72e5fec09ec7e (patch) | |
tree | bcef62ebf06199d9122576c78b4b9bc9c118d96a /pkgs/applications/misc/camunda-modeler/default.nix | |
parent | c439cbc78f3134a90cffda009fe21c68913b2902 (diff) | |
download | nixpkgs-96942dd1d5589026d338fd257eb72e5fec09ec7e.tar nixpkgs-96942dd1d5589026d338fd257eb72e5fec09ec7e.tar.gz nixpkgs-96942dd1d5589026d338fd257eb72e5fec09ec7e.tar.bz2 nixpkgs-96942dd1d5589026d338fd257eb72e5fec09ec7e.tar.lz nixpkgs-96942dd1d5589026d338fd257eb72e5fec09ec7e.tar.xz nixpkgs-96942dd1d5589026d338fd257eb72e5fec09ec7e.tar.zst nixpkgs-96942dd1d5589026d338fd257eb72e5fec09ec7e.zip |
camunda-modeler: init at 5.13.0
Diffstat (limited to 'pkgs/applications/misc/camunda-modeler/default.nix')
-rw-r--r-- | pkgs/applications/misc/camunda-modeler/default.nix | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/applications/misc/camunda-modeler/default.nix b/pkgs/applications/misc/camunda-modeler/default.nix new file mode 100644 index 00000000000..634e62e9ece --- /dev/null +++ b/pkgs/applications/misc/camunda-modeler/default.nix @@ -0,0 +1,71 @@ +{ stdenv +, lib +, fetchurl +, electron +, makeWrapper +, makeDesktopItem +, copyDesktopItems +}: + +stdenvNoCC.mkDerivation rec { + pname = "camunda-modeler"; + version = "5.13.0"; + + src = fetchurl { + url = "https://github.com/camunda/camunda-modeler/releases/download/v${version}/camunda-modeler-${version}-linux-x64.tar.gz"; + hash = "sha256-/9Af/1ZP2Hkc0PP9yXObNDNmxe6riBNWSv+JaM7O5Vs="; + }; + 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 = with maintainers; [ n0emis ]; + license = licenses.mit; + inherit (electron.meta) platforms; + }; +} + |