2019-10-17 23:26:28 +01:00
|
|
|
{ stdenv, fetchurl, lib, qtbase, qtmultimedia, qtscript, qtsensors, qtwebkit, openssl_1_0_2, xkeyboard_config, wrapQtAppsHook }:
|
2018-03-12 08:12:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "p4v";
|
2018-03-12 08:12:45 +00:00
|
|
|
version = "2017.3.1601999";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-18 14:08:26 +00:00
|
|
|
url = "https://cdist2.perforce.com/perforce/r17.3/bin.linux26x86_64/p4v.tgz";
|
2018-07-03 21:32:13 +01:00
|
|
|
sha256 = "9ded42683141e1808535ec3e87d3149f890315c192d6e97212794fd54862b9a4";
|
2018-03-12 08:12:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
2019-07-05 16:42:08 +01:00
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
2018-03-12 08:12:45 +00:00
|
|
|
|
|
|
|
ldLibraryPath = lib.makeLibraryPath [
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtscript
|
|
|
|
qtsensors
|
|
|
|
qtwebkit
|
2019-10-17 23:26:28 +01:00
|
|
|
openssl_1_0_2
|
2018-03-12 08:12:45 +00:00
|
|
|
];
|
|
|
|
|
2019-07-05 16:42:08 +01:00
|
|
|
dontWrapQtApps = true;
|
2018-03-12 08:12:45 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
cp -r bin $out
|
|
|
|
mkdir -p $out/lib/p4v
|
|
|
|
cp -r lib/p4v/P4VResources $out/lib/p4v
|
|
|
|
|
|
|
|
for f in $out/bin/*.bin ; do
|
2018-03-18 14:06:51 +00:00
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $f
|
|
|
|
|
2019-07-05 16:42:08 +01:00
|
|
|
wrapQtApp $f \
|
2018-03-12 08:12:45 +00:00
|
|
|
--suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
|
2019-07-05 16:42:08 +01:00
|
|
|
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
|
2018-03-12 08:12:45 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Perforce Visual Client";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.perforce.com";
|
2018-03-12 08:12:45 +00:00
|
|
|
license = stdenv.lib.licenses.unfreeRedistributable;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-10-17 23:26:28 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ nathyong nioncode ];
|
2018-03-12 08:12:45 +00:00
|
|
|
};
|
|
|
|
}
|