@@ -0,0 +1,30 @@
1+{ stdenv, fetchurl, lib, autoPatchelfHook }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "p4";
5+ version = "2020.1.1991450";
6+
7+ src = fetchurl {
8+ url = "https://cdist2.perforce.com/perforce/r20.1/bin.linux26x86_64/helix-core-server.tgz";
9+ sha256 = "0nhcxhwx3scx6vf7i2bc8j0b1l57lmq9bfy1cfbfbqasd3an721k";
10+ };
11+
12+ sourceRoot = ".";
13+
14+ dontBuild = true;
15+
16+ nativeBuildInputs = [ autoPatchelfHook ];
17+
18+ installPhase = ''
19+ mkdir -p $out/bin
20+ cp p4 p4broker p4d p4p $out/bin
21+ '';
22+
23+ meta = {
24+ description = "Perforce Command-Line Client";
25+ homepage = "https://www.perforce.com";
26+ license = lib.licenses.unfree;
27+ platforms = [ "x86_64-linux" ];
28+ maintainers = with lib.maintainers; [ corngood ];
29+ };
30+}