easylpac: init at 0.7.6.5

This commit is contained in:
2024-11-21 07:28:24 +00:00
parent d75de67fca
commit 1b7c9cf2a0
2 changed files with 64 additions and 3 deletions

View File

@@ -0,0 +1,55 @@
# based on linyinfeng's package
{
buildGoModule,
euicc-manual,
fetchFromGitHub,
glfw,
gtk3,
lib,
libglvnd,
lpac,
pkg-config,
wrapGAppsHook,
xorg,
}:
buildGoModule rec {
pname = "easylpac";
version = "0.7.6.5";
src = fetchFromGitHub {
owner = "creamlike1024";
repo = "EasyLPAC";
rev = version;
sha256 = "sha256-WQukghrBiUOb2t+iJVy2LYY0Hqkw5IMSe2e+8bQIw+U=";
};
proxyVendor = true; #< ??
vendorHash = "sha256-h/vRooTwbv63WraH/kBLfnmbd68oE6OtyghfocqDuhA=";
postConfigure = ''
cp ${euicc-manual.eum_manifest} eum-registry.json
cp ${euicc-manual.ci_manifest} ci-registry.json
'';
nativeBuildInputs = [
pkg-config
wrapGAppsHook
];
buildInputs = [
gtk3
libglvnd
xorg.libXxf86vm
] ++ glfw.buildInputs;
postInstall = ''
ln -s "${lpac}/bin/lpac" "$out/bin/lpac"
'';
meta = with lib; {
description = "lpac GUI Frontend";
homepage = "https://github.com/creamlike1024/EasyLPAC";
mainProgram = "EasyLPAC";
license = licenses.mit;
maintainers = with maintainers; [ colinsane yinfeng ];
};
}

View File

@@ -9,7 +9,8 @@
stdenv, stdenv,
unstableGitUpdater, unstableGitUpdater,
}: }:
stdenv.mkDerivation let
self = stdenv.mkDerivation
{ {
pname = "euicc-manual"; pname = "euicc-manual";
version = "0-unstable-2024-11-14"; version = "0-unstable-2024-11-14";
@@ -34,7 +35,11 @@ stdenv.mkDerivation
cp -Rv public $out/share/doc/euicc-manual cp -Rv public $out/share/doc/euicc-manual
''; '';
passthru.updateScript = unstableGitUpdater { }; passthru = {
updateScript = unstableGitUpdater { };
ci_manifest = "${self}/share/doc/euicc-manual/docs/pki/eum/manifest.json";
eum_manifest = "${self}/share/doc/euicc-manual/docs/pki/ci/manifest.json";
};
meta = with lib; { meta = with lib; {
description = "Osmocom eUICC and eSIM Developer Manual"; description = "Osmocom eUICC and eSIM Developer Manual";
@@ -42,4 +47,5 @@ stdenv.mkDerivation
repo = "https://gitea.osmocom.org/sim-card/euicc-manual"; repo = "https://gitea.osmocom.org/sim-card/euicc-manual";
maintainers = with maintainers; [ colinsane ]; maintainers = with maintainers; [ colinsane ];
}; };
} };
in self