Merge pull request #209778 from benwbooth/openlens

This commit is contained in:
Sandro 2023-03-10 23:21:08 +01:00 committed by GitHub
commit c079fc5f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

View File

@ -1832,6 +1832,12 @@
githubId = 442623;
name = "Ben Pye";
};
benwbooth = {
email = "benwboooth@gmail.com";
github = "benwbooth";
githubId = 75972;
name = "Ben Booth";
};
berberman = {
email = "berberman@yandex.com";
matrix = "@berberman:mozilla.org";

View File

@ -0,0 +1,40 @@
{ lib, fetchurl, appimageTools, wrapGAppsHook }:
let
pname = "openlens";
version = "6.4.5";
src = fetchurl {
url = "https://github.com/MuhammedKalkan/OpenLens/releases/download/v${version}/OpenLens-${version}.x86_64.AppImage";
sha256 = "sha256-Lwl4unhXSyYCEImiPncAnmIQt26CD4horsREMyi6nuA=";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
unshareIpc = false;
extraInstallCommands = ''
mv $out/bin/${pname}-${version} $out/bin/${pname}
install -m 444 -D ${appimageContents}/open-lens.desktop $out/share/applications/${pname}.desktop
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/open-lens.png \
$out/share/icons/hicolor/512x512/apps/${pname}.png
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Icon=open-lens' 'Icon=${pname}' \
--replace 'Exec=AppRun' 'Exec=${pname}'
'';
meta = with lib; {
description = "The Kubernetes IDE";
homepage = "https://github.com/MuhammedKalkan/OpenLens";
license = licenses.mit;
maintainers = with maintainers; [ benwbooth sebtm ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -31235,6 +31235,8 @@ with pkgs;
lens = callPackage ../applications/networking/cluster/lens { };
openlens = callPackage ../applications/networking/cluster/openlens { };
leo-editor = libsForQt5.callPackage ../applications/editors/leo-editor { };
libkiwix = callPackage ../applications/misc/kiwix/lib.nix { };