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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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";
2022-01-07 22:23:59 +00:00
sha256 = "sha256-SrfI2ZD7KDyttCd8+fo8g4UZKljYYO/SbzqrS9tAcC8=";
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 ];
};
}