easylpac: init at 0.7.6.5
This commit is contained in:
55
pkgs/by-name/easylpac/package.nix
Normal file
55
pkgs/by-name/easylpac/package.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user