mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
25 lines
517 B
Nix
25 lines
517 B
Nix
{ stdenv, undmg }:
|
|
|
|
{ pname, version, src, meta }:
|
|
stdenv.mkDerivation {
|
|
inherit pname version src meta;
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/Applications $out/bin
|
|
|
|
# Install Qt applications.
|
|
for f in p4admin.app p4merge.app p4v.app; do
|
|
mv $f $out/Applications
|
|
done
|
|
|
|
# Install p4vc separately (it's a tiny shell script).
|
|
mv p4vc $out/bin
|
|
substituteInPlace $out/bin/p4vc \
|
|
--replace /Applications $out/Applications
|
|
'';
|
|
}
|