From 76ac4c0d624c844ebaf7b9db912ba7d87011930a Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Thu, 16 Apr 2026 20:52:04 +0200 Subject: [PATCH] easylpac: init at 0.8.0.2 --- pkgs/by-name/ea/easylpac/package.nix | 84 ++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 pkgs/by-name/ea/easylpac/package.nix diff --git a/pkgs/by-name/ea/easylpac/package.nix b/pkgs/by-name/ea/easylpac/package.nix new file mode 100644 index 000000000000..da85d65a62f2 --- /dev/null +++ b/pkgs/by-name/ea/easylpac/package.nix @@ -0,0 +1,84 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + pkg-config, + wrapGAppsHook3, + makeDesktopItem, + copyDesktopItems, + gtk3, + libglvnd, + libxxf86vm, + libxrandr, + libxi, + libxinerama, + libxcursor, + libx11, + libxext, + lpac, +}: + +buildGoModule rec { + pname = "easylpac"; + version = "0.8.0.2"; + + src = fetchFromGitHub { + owner = "creamlike1024"; + repo = "EasyLPAC"; + tag = version; + hash = "sha256-GxcaMyEaPIGf+/wzmmycmFssTkP5Praj4GCYbxbJU28="; + }; + + vendorHash = "sha256-52I8hlnoHPhygwr0dxDP50X2A7Gsh0v/0SGQFH3FG/8="; + + nativeBuildInputs = [ + copyDesktopItems + pkg-config + wrapGAppsHook3 + ]; + + buildInputs = [ + gtk3 + libglvnd + libxxf86vm + libx11 + libxrandr + libxinerama + libxcursor + libxi + libxext + ]; + + postInstall = '' + install -Dm644 assets/icon64.png "$out/share/icons/hicolor/64x64/apps/EasyLPAC.png" + install -Dm644 assets/icon128.png "$out/share/icons/hicolor/128x128/apps/EasyLPAC.png" + ''; + + preFixup = '' + gappsWrapperArgs+=( + --prefix PATH : ${lib.makeBinPath [ lpac ]} + ) + ''; + + desktopItems = [ + (makeDesktopItem { + name = "EasyLPAC"; + exec = "EasyLPAC"; + icon = "EasyLPAC"; + desktopName = "EasyLPAC"; + comment = "GUI frontend for lpac, a C-based eUICC LPA"; + categories = [ "Utility" ]; + }) + ]; + + __structuredAttrs = true; + + meta = { + description = "GUI frontend for lpac, a C-based eUICC LPA"; + homepage = "https://github.com/creamlike1024/EasyLPAC"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ stargate01 ]; + mainProgram = "EasyLPAC"; + platforms = lib.platforms.linux; + }; +}