diff options
author | Diamondy Franc <diamondy4@hotmail.com> | 2023-08-06 01:45:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-06 00:45:17 +0200 |
commit | 54e6327e288a41c1ead755480d288e9712eb66b2 (patch) | |
tree | fbe863c4641e327bd8cce4e8829576ead9702e8b /pkgs/applications/networking/cluster/lens/darwin.nix | |
parent | 09464624ddd186547ad899464b0ab29034a64397 (diff) |
lens: 6.3.0 -> 6.5.2 (#242911)
Diffstat (limited to 'pkgs/applications/networking/cluster/lens/darwin.nix')
-rw-r--r-- | pkgs/applications/networking/cluster/lens/darwin.nix | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/applications/networking/cluster/lens/darwin.nix b/pkgs/applications/networking/cluster/lens/darwin.nix index d9d46895d379d..e8f17422ec1ff 100644 --- a/pkgs/applications/networking/cluster/lens/darwin.nix +++ b/pkgs/applications/networking/cluster/lens/darwin.nix @@ -1,18 +1,16 @@ { lib, stdenv, undmg, fetchurl }: - +let + common = import ./common.nix { inherit fetchurl; }; + inherit (stdenv.hostPlatform) system; +in stdenv.mkDerivation rec { - pname = "lens"; - version = "2022.12"; - build = "${version}.11410-latest"; + inherit (common) pname version; + src = common.sources.${system} or (throw "Source for ${pname} is not available for ${system}"); + appName = "Lens"; sourceRoot = "${appName}.app"; - src = fetchurl { - url = "https://api.k8slens.dev/binaries/Lens-${build}-arm64.dmg"; - sha256 = "sha256-PKWJ2CZ/wacbJnrCZdYwYJzbFVhjIGAw60UGhdw11Mc="; - }; - buildInputs = [ undmg ]; installPhase = '' mkdir -p "$out/Applications/${appName}.app" @@ -24,6 +22,6 @@ stdenv.mkDerivation rec { homepage = "https://k8slens.dev/"; license = licenses.lens; maintainers = with maintainers; [ dbirks ]; - platforms = [ "aarch64-darwin" ]; + platforms = [ "x86_64-darwin" "aarch64-darwin" ]; }; } |