2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, gperf, bison, groff
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, libXft, pcre
|
2020-04-24 23:36:52 +00:00
|
|
|
, libtomcrypt, libtommath, lz4 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bitkeeper";
|
|
|
|
version = "7.3.1ce";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.bitkeeper.org/downloads/${version}/bk-${version}.src.tar.gz";
|
|
|
|
sha256 = "0l6jwvcg4s1q00vb01hdv58jgv03l8x5mhjl73cwgfiff80zx147";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
perl gperf bison groff libXft
|
|
|
|
pcre libtomcrypt libtommath lz4
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace port/unix_platform.sh \
|
|
|
|
--replace /bin/rm rm
|
|
|
|
substituteInPlace ./undo.c \
|
|
|
|
--replace /bin/cat cat
|
|
|
|
'';
|
|
|
|
|
|
|
|
sourceRoot = "bk-${version}/src";
|
|
|
|
buildPhase = ''
|
|
|
|
make -j6 V=1 p
|
|
|
|
make image
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
./utils/bk-* $out/bitkeeper
|
|
|
|
mkdir -p $out/bin
|
|
|
|
$out/bitkeeper/bk links $out/bin
|
|
|
|
chmod g-w $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A distributed version control system";
|
|
|
|
longDescription = ''
|
|
|
|
BitKeeper is a fast, enterprise-ready, distributed SCM that
|
|
|
|
scales up to very large projects and down to tiny ones.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.bitkeeper.org/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ wscott thoughtpolice ];
|
2020-04-24 23:36:52 +00:00
|
|
|
broken = true; # seems to fail on recent glibc versions
|
|
|
|
};
|
|
|
|
}
|