mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
b197c7fb48
The download URL hasn't changed, but the sha256 and user facing download version has. See [perforce downloads][p4-download]. [p4-download]: https://www.perforce.com/downloads/helix-command-line-client-p4
31 lines
717 B
Nix
31 lines
717 B
Nix
{ stdenv, fetchurl, lib, autoPatchelfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "p4";
|
|
version = "2020.1.2007551";
|
|
|
|
src = fetchurl {
|
|
url = "https://cdist2.perforce.com/perforce/r20.1/bin.linux26x86_64/helix-core-server.tgz";
|
|
sha256 = "0ly9b838zrpp6841fzapizdd3xmria55bwfrh2j29qwxiwzqj80y";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp p4 p4broker p4d p4p $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Perforce Command-Line Client";
|
|
homepage = "https://www.perforce.com";
|
|
license = lib.licenses.unfree;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with lib.maintainers; [ corngood ];
|
|
};
|
|
}
|