From a283502cd21b01d13925edb10f93635e38a5fc28 Mon Sep 17 00:00:00 2001 From: Ben Booth Date: Sun, 8 Jan 2023 16:01:00 -0800 Subject: [PATCH] openlens: init at 6.4.5 --- maintainers/maintainer-list.nix | 6 +++ .../networking/cluster/openlens/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 48 insertions(+) create mode 100644 pkgs/applications/networking/cluster/openlens/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 169663a2f573..6d888b18a0b9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1755,6 +1755,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"; diff --git a/pkgs/applications/networking/cluster/openlens/default.nix b/pkgs/applications/networking/cluster/openlens/default.nix new file mode 100644 index 000000000000..42d3aab63466 --- /dev/null +++ b/pkgs/applications/networking/cluster/openlens/default.nix @@ -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" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 63344ea39a38..ed9afef7b6e1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30362,6 +30362,8 @@ with pkgs; lens = callPackage ../applications/networking/cluster/lens { }; + openlens = callPackage ../applications/networking/cluster/openlens { }; + leo-editor = libsForQt5.callPackage ../applications/editors/leo-editor { }; libowfat = callPackage ../development/libraries/libowfat { };