2020-08-21 17:37:10 +01:00
|
|
|
{ stdenv, fetchurl, lib, autoPatchelfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "p4";
|
2021-12-28 10:24:47 +00:00
|
|
|
version = "2021.2.2201121";
|
2020-08-21 17:37:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-28 10:24:47 +00:00
|
|
|
# actually https://cdist2.perforce.com/perforce/r21.2/bin.linux26x86_64/helix-core-server.tgz but upstream deletes releases
|
2022-01-06 17:08:29 +00:00
|
|
|
url = "https://web.archive.org/web/20211118024943/https://cdist2.perforce.com/perforce/r21.2/bin.linux26x86_64/helix-core-server.tgz";
|
2021-12-28 10:24:47 +00:00
|
|
|
sha256 = "sha256-cmIMVek4lwVYJQbW8ziABftPZ0iIoAoSpR7cKuN4I7M=";
|
2020-08-21 17:37:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-12-28 10:24:47 +00:00
|
|
|
install -D --target $out/bin p4 p4broker p4d p4p
|
2020-08-21 17:37:10 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Perforce Command-Line Client";
|
|
|
|
homepage = "https://www.perforce.com";
|
|
|
|
license = lib.licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with lib.maintainers; [ corngood ];
|
|
|
|
};
|
|
|
|
}
|