aptakube: init at 1.11.10

This commit is contained in:
Julia Mertz
2025-06-26 20:11:47 +02:00
parent fa06e1a90d
commit d9797a40c8
3 changed files with 113 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
{
stdenvNoCC,
fetchurl,
undmg,
pname,
version,
meta,
}:
stdenvNoCC.mkDerivation {
inherit
pname
version
meta
;
src = fetchurl {
url = "https://github.com/aptakube/aptakube/releases/download/${version}/Aptakube_${version}_universal.dmg";
sha256 = "sha256-ljVl490cZuIcRSP8RKmf8Eq5D4OibLfuA8SugUlf1Yw=";
};
nativeBuildInputs = [ undmg ];
unpackPhase = ''
runHook preUnpack
undmg $src
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -r Aptakube.app $out/Applications/Aptakube.app
runHook postInstall
'';
}
+43
View File
@@ -0,0 +1,43 @@
{
stdenvNoCC,
fetchurl,
dpkg,
autoPatchelfHook,
webkitgtk_4_1,
pname,
version,
meta,
}:
stdenvNoCC.mkDerivation {
inherit
pname
version
meta
;
src = fetchurl {
url = "https://github.com/aptakube/aptakube/releases/download/${version}/aptakube_${version}_amd64.deb";
sha256 = "sha256-lT8v2nXVfZb5W/FP/ymWjGypQLz7ONlp9+GblMKKXuw=";
};
nativeBuildInputs = [
autoPatchelfHook
dpkg
];
buildInputs = [ webkitgtk_4_1 ];
unpackPhase = ''
runHook preUnpack
dpkg -X $src .
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r usr/share usr/bin $out
runHook postInstall
'';
}
+34
View File
@@ -0,0 +1,34 @@
{
lib,
stdenv,
callPackage,
...
}:
let
pname = "aptakube";
version = "1.11.10";
meta = {
homepage = "https://aptakube.com/";
description = "Modern, lightweight and multi-cluster Kubernetes GUI";
license = lib.licenses.unfree;
maintainers = [ lib.maintainers.juliamertz ];
platforms = lib.platforms.darwin ++ [ "x86_64-linux" ];
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
};
in
if stdenv.hostPlatform.isDarwin then
callPackage ./darwin.nix {
inherit
pname
version
meta
;
}
else
callPackage ./linux.nix {
inherit
pname
version
meta
;
}