lens: add aarch64-darwin support
This commit is contained in:
parent
c44b804901
commit
e4af93b220
29
pkgs/applications/networking/cluster/lens/darwin.nix
Normal file
29
pkgs/applications/networking/cluster/lens/darwin.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ lib, stdenv, undmg, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lens";
|
||||
version = "2022.12";
|
||||
build = "${version}.11410-latest";
|
||||
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"
|
||||
cp -R . "$out/Applications/${appName}.app"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Kubernetes IDE";
|
||||
homepage = "https://k8slens.dev/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dbirks ];
|
||||
platforms = [ "aarch64-darwin" ];
|
||||
};
|
||||
}
|
6
pkgs/applications/networking/cluster/lens/default.nix
Normal file
6
pkgs/applications/networking/cluster/lens/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ stdenv, callPackage }:
|
||||
|
||||
if stdenv.isDarwin then
|
||||
callPackage ./darwin.nix { }
|
||||
else
|
||||
callPackage ./linux.nix { }
|
Loading…
Reference in New Issue
Block a user