From 5119d46a48c7f40527b35f32658664767a72ab5d Mon Sep 17 00:00:00 2001 From: Yassine Date: Thu, 26 Sep 2024 04:36:35 +0300 Subject: [PATCH] edex-ui: init to 2.2.8 --- pkgs/by-name/ed/edex-ui/package.nix | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/by-name/ed/edex-ui/package.nix diff --git a/pkgs/by-name/ed/edex-ui/package.nix b/pkgs/by-name/ed/edex-ui/package.nix new file mode 100644 index 0000000000000..c2b8dcbbc16b5 --- /dev/null +++ b/pkgs/by-name/ed/edex-ui/package.nix @@ -0,0 +1,32 @@ +{ appimageTools, fetchurl, system, lib }: +let + pname = "edex-ui"; + name = "eDEX-UI"; + version = "2.2.8"; + platform = "Linux-x86_64"; + src = fetchurl { + url = "https://github.com/GitSquared/edex-ui/releases/download/v${version}/${name}-${platform}.AppImage"; + hash = "sha256-yPKM1yHKAyygwZYLdWyj5k3EQaZDwy6vu3nGc7QC1oE="; + }; + appimageContents = appimageTools.extractType2 { inherit pname version src; }; +in +appimageTools.wrapType2 { + inherit pname version src; + + extraInstallCommands = '' + install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop + install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/${pname}.png \ + $out/share/icons/hicolor/512x512/apps/${pname}.png + substituteInPlace $out/share/applications/${pname}.desktop \ + --replace 'Exec=AppRun' 'Exec=${pname} %U' + ''; + + meta = with lib; { + description = "A cross-platform, customizable science fiction terminal emulator with advanced monitoring & touchscreen support."; + mainProgram = "edex-ui"; + homepage = "https://github.com/GitSquared/edex-ui"; + license = licenses.gpl3; + platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ yassinebenarbia ]; + }; +}