28 { pname, version, src, meta }:
30 unwrapped = stdenv.mkDerivation {
31 pname = "${pname}-unwrapped";
32 inherit version src meta;
34 nativeBuildInputs = [ autoPatchelfHook ];
63 # Don't wrap the Qt apps; upstream has its own wrapper scripts.
64 dontWrapQtApps = true;
69 addAutoPatchelfSearchPath $out/lib
74 inherit pname version;
76 # Build a "clean" version of the package so that we don't add extra ".bin" or
77 # configuration files to users' PATHs. We can't easily put the unwrapped
78 # package files in libexec (where they belong, probably) because the upstream
79 # wrapper scripts have the bin directory hardcoded.
82 for f in p4admin p4merge p4v p4vc; do
83 ln -s ${unwrapped}/bin/$f $out/bin
86 preferLocalBuild = true;
88 inherit (unwrapped) meta passthru;