mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 00:54:40 +00:00
21 lines
340 B
Nix
21 lines
340 B
Nix
{ stdenv, pname, version, src, meta, undmg }:
|
|
|
|
stdenv.mkDerivation {
|
|
inherit pname version src meta;
|
|
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p "$out/Applications"
|
|
cp -R "Lens.app" "$out/Applications/Lens.app"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
dontFixup = true;
|
|
}
|