Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package for BitKeeper-7.3 #16928

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 48 additions & 0 deletions pkgs/applications/version-management/bitkeeper/default.nix
@@ -0,0 +1,48 @@
{stdenv, fetchurl, perl, gperf, bison, groff,
pkgconfig, libXft, fontconfig, pcre, libtomcrypt, libtommath, lz4, zlib}:

stdenv.mkDerivation rec {
version = "7.3ce";
name = "bitkeeper-${version}";
enableParallelBuilding = true;
src = fetchurl {
url = "https://www.bitkeeper.org/downloads/${version}/bk-${version}.tar.gz";
sha256 = "13249636f4b5b39f1d64b9f6bf682ee2dce53db17cdd8aa4cd9019e65252cabb";
};
sourceRoot = "bk-${version}/src";

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
'';

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 = http://www.bitkeeper.org/;
license = stdenv.lib.licenses.asl20;
platforms = with stdenv.lib.platforms; all;
maintainers = [
stdenv.lib.maintainers.wscott
];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libtomcrypt/default.nix
Expand Up @@ -4,7 +4,7 @@ stdenv.mkDerivation {
name = "libtomcrypt-1.17";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, these bumps would have their own commits.


src = fetchurl {
url = "http://libtom.org/files/crypt-1.17.tar.bz2";
url = "https://github.com/libtom/libtomcrypt/releases/download/1.17/crypt-1.17.tar.bz2";
sha256 = "e33b47d77a495091c8703175a25c8228aff043140b2554c08a3c3cd71f79d116";
};

Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/libraries/libtommath/default.nix
@@ -1,11 +1,11 @@
{stdenv, fetchurl, libtool}:

stdenv.mkDerivation {
name = "libtommath-0.39";
name = "libtommath-1.0";

src = fetchurl {
url = http://math.libtomcrypt.com/files/ltm-0.39.tar.bz2;
sha256 = "1kjx8rrw62nanzc5qp8fj6r3ybhw8ca60ahkyb70f10aiij49zs2";
url = https://github.com/libtom/libtommath/releases/download/v1.0/ltm-1.0.tar.xz;
sha256 = "0v5mpd8zqjfs2hr900w1mxifz23xylyjdqyx1i1wl7q9xvwpsflr";
};

buildInputs = [libtool];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -12206,6 +12206,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 { };

Expand Down