Skip to content

Commit

Permalink
edex-ui: formatting, remove system param, remove with lib;
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinebenarbia committed Oct 1, 2024
1 parent 5119d46 commit a56f200
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23142,6 +23142,12 @@
githubId = 33605526;
name = "Yash Garg";
};
yassinebenarbia = {
email = "yassine.bna@proton.me";
github = "yassinebenarbia";
githubId = 104306099;
name = "Yassine";
};
yavko = {
name = "Yavor Kolev";
email = "yavornkolev@gmail.com";
Expand Down
24 changes: 13 additions & 11 deletions pkgs/by-name/ed/edex-ui/package.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
{ appimageTools, fetchurl, system, lib }:
let
{
appimageTools,
fetchurl,
lib,
}:
appimageTools.wrapType2 rec {
pname = "edex-ui";
name = "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
$out/share/icons/hicolor/512x512/apps/${pname}.png
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun' 'Exec=${pname} %U'
--replace 'Exec=AppRun' 'Exec=${pname} %U'
'';

meta = with lib; {
meta = {
description = "A cross-platform, customizable science fiction terminal emulator with advanced monitoring & touchscreen support.";
mainProgram = "edex-ui";
changelog = "https://github.com/GitSquared/edex-ui/releases/tag${version}";
homepage = "https://github.com/GitSquared/edex-ui";
license = licenses.gpl3;
license = lib.licenses.gpl3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ yassinebenarbia ];
maintainers = with lib.maintainers; [ yassinebenarbia ];
};
}

0 comments on commit a56f200

Please sign in to comment.