mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 17:34:04 +00:00
28 lines
736 B
Nix
28 lines
736 B
Nix
{ lib, stdenv, undmg, fetchurl }:
|
|
let
|
|
common = import ./common.nix { inherit fetchurl; };
|
|
inherit (stdenv.hostPlatform) system;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
inherit (common) pname version;
|
|
src = common.sources.${system} or (throw "Source for ${pname} is not available for ${system}");
|
|
|
|
appName = "Lens";
|
|
|
|
sourceRoot = "${appName}.app";
|
|
|
|
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.lens;
|
|
maintainers = with maintainers; [ dbirks ];
|
|
platforms = [ "x86_64-darwin" "aarch64-darwin" ];
|
|
};
|
|
}
|