diff options
author | Wayne Scott <wsc9tt@gmail.com> | 2016-07-18 04:58:59 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2016-07-18 05:22:18 -0500 |
commit | af056de900b82d7406925df13af9c87f3e4c49ae (patch) | |
tree | 19428f6acaf12ebd401606b384d8993f34e433c6 /pkgs | |
parent | a05e51d17aa75bde7038035606d2f9a33476271a (diff) | |
download | nixlib-af056de900b82d7406925df13af9c87f3e4c49ae.tar nixlib-af056de900b82d7406925df13af9c87f3e4c49ae.tar.gz nixlib-af056de900b82d7406925df13af9c87f3e4c49ae.tar.bz2 nixlib-af056de900b82d7406925df13af9c87f3e4c49ae.tar.lz nixlib-af056de900b82d7406925df13af9c87f3e4c49ae.tar.xz nixlib-af056de900b82d7406925df13af9c87f3e4c49ae.tar.zst nixlib-af056de900b82d7406925df13af9c87f3e4c49ae.zip |
nixpkgs: add bitkeeper-7.3ce
Closes #16928. Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/version-management/bitkeeper/default.nix | 52 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/bitkeeper/default.nix b/pkgs/applications/version-management/bitkeeper/default.nix new file mode 100644 index 000000000000..9b487643910f --- /dev/null +++ b/pkgs/applications/version-management/bitkeeper/default.nix @@ -0,0 +1,52 @@ +{ stdenv, fetchurl, perl, gperf, bison, groff +, pkgconfig, libXft, fontconfig, pcre +, libtomcrypt, libtommath, lz4, zlib }: + +stdenv.mkDerivation rec { + name = "bitkeeper-${version}"; + version = "7.3ce"; + + src = fetchurl { + url = "https://www.bitkeeper.org/downloads/${version}/bk-${version}.tar.gz"; + sha256 = "0lk4vydpq5bi52m81h327gvzdzybf8kkak7yjwmpj6kg1jn9blaz"; + }; + + enableParallelBuilding = true; + + buildInputs = [ + perl gperf bison groff libXft pkgconfig + 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/; + license = stdenv.lib.licenses.asl20; + platforms = stdenv.lib.platforms.unix; + maintainers = with stdenv.lib.maintainers; [ wscott thoughtpolice ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5205492796db..6e7779bdd0d9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12241,6 +12241,8 @@ in bibletime = callPackage ../applications/misc/bibletime { }; + bitkeeper = callPackage ../applications/version-management/bitkeeper { }; + bitlbee = callPackage ../applications/networking/instant-messengers/bitlbee { }; bitlbee-plugins = callPackage ../applications/networking/instant-messengers/bitlbee/plugins.nix { }; |