lens: 6.3.0 -> 6.5.2 (#242911)

authored by

Diamondy Franc and committed by
GitHub
54e6327e 09464624

+41 -26
+22
pkgs/applications/networking/cluster/lens/common.nix
··· 1 + { fetchurl }: 2 + let 3 + build = "2023.5.310801-latest"; 4 + in 5 + { 6 + pname = "lens-desktop"; 7 + version = "6.5.2"; 8 + sources = { 9 + x86_64-darwin = fetchurl { 10 + sha256 = "sha256-AGU1kOQEYBAGqWaxftqSNVdPEblPDujKSBjMeaVNx6M="; 11 + url = "https://api.k8slens.dev/binaries/Lens-${build}.dmg"; 12 + }; 13 + aarch64-darwin = fetchurl { 14 + sha256 = "sha256-Xx+6GPAfjioTrqfFS7cFh6deraR+TtqLlwLbVQxfN8g="; 15 + url = "https://api.k8slens.dev/binaries/Lens-${build}-arm64.dmg"; 16 + }; 17 + x86_64-linux = fetchurl { 18 + sha256 = "sha256-DPgeAhM8k6RXg1Qw2bqJFLPh5q2o7Va6EAe/InQNXLg="; 19 + url = "https://api.k8slens.dev/binaries/Lens-${build}.x86_64.AppImage"; 20 + }; 21 + }; 22 + }
+8 -10
pkgs/applications/networking/cluster/lens/darwin.nix
··· 1 1 { lib, stdenv, undmg, fetchurl }: 2 - 2 + let 3 + common = import ./common.nix { inherit fetchurl; }; 4 + inherit (stdenv.hostPlatform) system; 5 + in 3 6 stdenv.mkDerivation rec { 4 - pname = "lens"; 5 - version = "2022.12"; 6 - build = "${version}.11410-latest"; 7 + inherit (common) pname version; 8 + src = common.sources.${system} or (throw "Source for ${pname} is not available for ${system}"); 9 + 7 10 appName = "Lens"; 8 11 9 12 sourceRoot = "${appName}.app"; 10 - 11 - src = fetchurl { 12 - url = "https://api.k8slens.dev/binaries/Lens-${build}-arm64.dmg"; 13 - sha256 = "sha256-PKWJ2CZ/wacbJnrCZdYwYJzbFVhjIGAw60UGhdw11Mc="; 14 - }; 15 13 16 14 buildInputs = [ undmg ]; 17 15 installPhase = '' ··· 24 22 homepage = "https://k8slens.dev/"; 25 23 license = licenses.lens; 26 24 maintainers = with maintainers; [ dbirks ]; 27 - platforms = [ "aarch64-darwin" ]; 25 + platforms = [ "x86_64-darwin" "aarch64-darwin" ]; 28 26 }; 29 27 }
-1
pkgs/applications/networking/cluster/lens/default.nix
··· 1 1 { stdenv, callPackage }: 2 - 3 2 if stdenv.isDarwin then 4 3 callPackage ./darwin.nix { } 5 4 else
+11 -15
pkgs/applications/networking/cluster/lens/linux.nix
··· 1 - { lib, fetchurl, appimageTools, wrapGAppsHook, makeWrapper }: 2 - 1 + { lib, fetchurl, appimageTools, makeWrapper, nss_latest, stdenv }: 3 2 let 4 - pname = "lens"; 5 - version = "6.3.0"; 6 - build = "2022.12.221341-latest"; 7 - name = "${pname}-${version}"; 3 + common = import ./common.nix { inherit fetchurl; }; 8 4 9 - src = fetchurl { 10 - url = "https://api.k8slens.dev/binaries/Lens-${build}.x86_64.AppImage"; 11 - sha256 = "sha256-IJkm2Woz362jydFph9ek+5Jh2jtDH8kKvWoLQhTZPvc="; 12 - name = "${pname}.AppImage"; 13 - }; 5 + inherit (stdenv.hostPlatform) system; 6 + 7 + inherit (common) pname version; 8 + src = common.sources.${stdenv.hostPlatform.system} or (throw "Source for ${pname} is not available for ${system}"); 9 + name = "${pname}-${version}"; 14 10 15 11 appimageContents = appimageTools.extractType2 { 16 12 inherit name src; 17 13 }; 18 - 19 14 in 20 15 appimageTools.wrapType2 { 21 16 inherit name src; ··· 26 21 source "${makeWrapper}/nix-support/setup-hook" 27 22 wrapProgram $out/bin/${pname} \ 28 23 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" 29 - install -m 444 -D ${appimageContents}/lens.desktop $out/share/applications/${pname}.desktop 30 - install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/lens.png \ 24 + install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop 25 + install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/${pname}.png \ 31 26 $out/share/icons/hicolor/512x512/apps/${pname}.png 32 27 substituteInPlace $out/share/applications/${pname}.desktop \ 33 - --replace 'Icon=lens' 'Icon=${pname}' \ 34 28 --replace 'Exec=AppRun' 'Exec=${pname}' 35 29 ''; 30 + 31 + extraPkgs = _: [ nss_latest ]; 36 32 37 33 meta = with lib; { 38 34 description = "The Kubernetes IDE";