about summary refs log tree commit diff
path: root/pkgs/applications/version-management
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-04-09 14:07:03 -0500
committerGitHub <noreply@github.com>2018-04-09 14:07:03 -0500
commita7341d70ef3ba6ff06ef28f72ace76240cf1171a (patch)
treec03c2d70ff03c1d15e33bfa65c322f264ef2a74a /pkgs/applications/version-management
parent5c3204877fb4958aba32acd9c7d9b6aeef00b60e (diff)
parentbe40a8b2f61d48688e8401a7593e656028122511 (diff)
downloadnixlib-a7341d70ef3ba6ff06ef28f72ace76240cf1171a.tar
nixlib-a7341d70ef3ba6ff06ef28f72ace76240cf1171a.tar.gz
nixlib-a7341d70ef3ba6ff06ef28f72ace76240cf1171a.tar.bz2
nixlib-a7341d70ef3ba6ff06ef28f72ace76240cf1171a.tar.lz
nixlib-a7341d70ef3ba6ff06ef28f72ace76240cf1171a.tar.xz
nixlib-a7341d70ef3ba6ff06ef28f72ace76240cf1171a.tar.zst
nixlib-a7341d70ef3ba6ff06ef28f72ace76240cf1171a.zip
Merge pull request #36884 from nioncode/p4v
p4v: init at 2017.3.1601999
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r--pkgs/applications/version-management/p4v/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/p4v/default.nix b/pkgs/applications/version-management/p4v/default.nix
new file mode 100644
index 000000000000..27e029d39d1e
--- /dev/null
+++ b/pkgs/applications/version-management/p4v/default.nix
@@ -0,0 +1,48 @@
+{ stdenv, fetchurl, lib, qtbase, qtmultimedia, qtscript, qtsensors, qtwebkit, openssl, xkeyboard_config, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  name = "p4v-${version}";
+  version = "2017.3.1601999";
+
+  src = fetchurl {
+    url = "https://cdist2.perforce.com/perforce/r17.3/bin.linux26x86_64/p4v.tgz";
+    sha256 = "f317607f1bc8877db01ff020b8b0857c2d0f8600474d152749264aea0be66b21";
+  };
+
+  dontBuild = true;
+  nativeBuildInputs = [makeWrapper];
+
+  ldLibraryPath = lib.makeLibraryPath [
+      stdenv.cc.cc.lib
+      qtbase
+      qtmultimedia
+      qtscript
+      qtsensors
+      qtwebkit
+      openssl
+  ];
+
+  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
+      patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $f
+
+      wrapProgram $f \
+        --suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
+        --suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb \
+        --suffix QT_PLUGIN_PATH : ${qtbase.bin}/${qtbase.qtPluginPrefix}
+    done
+  '';
+
+  meta = {
+    description = "Perforce Visual Client";
+    homepage = https://www.perforce.com;
+    license = stdenv.lib.licenses.unfreeRedistributable;
+    platforms = [ "x86_64-linux" ];
+    maintainers = [ stdenv.lib.maintainers.nioncode ];
+  };
+}