mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
28 lines
354 B
Nix
28 lines
354 B
Nix
{ stdenv
|
|
, pname
|
|
, version
|
|
, src
|
|
, meta
|
|
, undmg
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
inherit pname version src meta;
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
cp -r *.app $out/Applications
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
# Immersed is notarized.
|
|
dontFixup = true;
|
|
}
|