2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, fetchurl, lib, autoPatchelfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "p4";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "2021.2.2201121";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-03 16:56:52 +00:00
|
|
|
# actually https://cdist2.perforce.com/perforce/r21.2/bin.linux26x86_64/helix-core-server.tgz but upstream deletes releases
|
2022-01-07 04:07:37 +00:00
|
|
|
url = "https://web.archive.org/web/20211118024943/https://cdist2.perforce.com/perforce/r21.2/bin.linux26x86_64/helix-core-server.tgz";
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "sha256-cmIMVek4lwVYJQbW8ziABftPZ0iIoAoSpR7cKuN4I7M=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-01-03 16:56:52 +00:00
|
|
|
install -D --target $out/bin p4 p4broker p4d p4p
|
2020-09-25 04:45:31 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|