mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #210396 from RossComputerGuy/lens
This commit is contained in:
commit
eea5d79276
2 changed files with 14 additions and 7 deletions
|
@ -16287,4 +16287,10 @@
|
||||||
github = "Detegr";
|
github = "Detegr";
|
||||||
githubId = 724433;
|
githubId = 724433;
|
||||||
};
|
};
|
||||||
|
RossComputerGuy = {
|
||||||
|
name = "Tristan Ross";
|
||||||
|
email = "tristan.ross@midstall.com";
|
||||||
|
github = "RossComputerGuy";
|
||||||
|
githubId = 19699320;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{ lib, fetchurl, appimageTools, wrapGAppsHook }:
|
{ lib, fetchurl, appimageTools, wrapGAppsHook, makeWrapper }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "lens";
|
pname = "lens";
|
||||||
version = "5.5.3";
|
version = "6.3.0";
|
||||||
build = "${version}-latest.20220602.2";
|
build = "2022.12.221341-latest";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://api.k8slens.dev/binaries/Lens-${build}.x86_64.AppImage";
|
url = "https://api.k8slens.dev/binaries/Lens-${build}.x86_64.AppImage";
|
||||||
sha256 = "sha256-lwiwyXoO+7KgDnQ2Ly0QK0oEVHR73nsMZMGOd2j48dg=";
|
sha256 = "sha256-IJkm2Woz362jydFph9ek+5Jh2jtDH8kKvWoLQhTZPvc=";
|
||||||
name = "${pname}.AppImage";
|
name = "${pname}.AppImage";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,11 +23,12 @@ appimageTools.wrapType2 {
|
||||||
extraInstallCommands =
|
extraInstallCommands =
|
||||||
''
|
''
|
||||||
mv $out/bin/${name} $out/bin/${pname}
|
mv $out/bin/${name} $out/bin/${pname}
|
||||||
|
source "${makeWrapper}/nix-support/setup-hook"
|
||||||
|
wrapProgram $out/bin/${pname} \
|
||||||
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
||||||
install -m 444 -D ${appimageContents}/lens.desktop $out/share/applications/${pname}.desktop
|
install -m 444 -D ${appimageContents}/lens.desktop $out/share/applications/${pname}.desktop
|
||||||
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/lens.png \
|
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/lens.png \
|
||||||
$out/share/icons/hicolor/512x512/apps/${pname}.png
|
$out/share/icons/hicolor/512x512/apps/${pname}.png
|
||||||
|
|
||||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||||
--replace 'Icon=lens' 'Icon=${pname}' \
|
--replace 'Icon=lens' 'Icon=${pname}' \
|
||||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
|
@ -37,7 +38,7 @@ appimageTools.wrapType2 {
|
||||||
description = "The Kubernetes IDE";
|
description = "The Kubernetes IDE";
|
||||||
homepage = "https://k8slens.dev/";
|
homepage = "https://k8slens.dev/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ dbirks ];
|
maintainers = with maintainers; [ dbirks RossComputerGuy ];
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue