nixpkgs/pkgs/applications/version-management/p4/default.nix

31 lines
883 B
Nix
Raw Normal View History

2020-08-21 16:37:10 +00: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 16:37:10 +00: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
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 16:37:10 +00: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 16:37:10 +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 ];
};
}