depot/third_party/nixpkgs/pkgs/applications/version-management/p4v/darwin.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

24 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
'';
}