2011-01-14 12:37:26 +00:00
|
|
|
{ stdenv, fetchurl, boost, zlib, botan, libidn
|
2014-06-10 06:20:00 +01:00
|
|
|
, lua, pcre, sqlite, perl, pkgconfig, expect
|
|
|
|
, bzip2, gmp, openssl
|
|
|
|
}:
|
2008-01-25 11:56:36 +00:00
|
|
|
|
2011-07-13 10:13:28 +01:00
|
|
|
let
|
2014-06-10 06:20:00 +01:00
|
|
|
version = "1.1";
|
2011-01-14 12:37:26 +00:00
|
|
|
perlVersion = (builtins.parseDrvName perl.name).version;
|
|
|
|
in
|
|
|
|
|
|
|
|
assert perlVersion != "";
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2009-03-25 16:06:00 +00:00
|
|
|
name = "monotone-${version}";
|
2011-07-13 10:13:28 +01:00
|
|
|
|
2008-01-25 11:56:36 +00:00
|
|
|
src = fetchurl {
|
2011-03-28 21:26:29 +01:00
|
|
|
url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.bz2";
|
2014-06-10 06:20:00 +01:00
|
|
|
sha256 = "124cwgi2q86hagslbk5idxbs9j896rfjzryhr6z63r6l485gcp7r";
|
2008-01-25 11:56:36 +00:00
|
|
|
};
|
2011-07-13 10:13:28 +01:00
|
|
|
|
2018-08-02 04:46:34 +01:00
|
|
|
patches = [ ./monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch ];
|
2013-02-23 23:31:20 +00:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-09-08 14:12:27 +01:00
|
|
|
buildInputs = [ boost zlib botan libidn lua pcre sqlite expect
|
2014-06-10 06:20:00 +01:00
|
|
|
openssl gmp bzip2 ];
|
2011-07-13 10:13:28 +01:00
|
|
|
|
2009-10-15 12:13:21 +01:00
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/${name}
|
2010-09-09 21:05:00 +01:00
|
|
|
cp -rv contrib/ $out/share/${name}/contrib
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib/perl5/site_perl/${perlVersion}
|
2010-11-02 11:20:24 +00:00
|
|
|
cp -v contrib/Monotone.pm $out/lib/perl5/site_perl/${perlVersion}
|
2009-10-15 12:13:21 +01:00
|
|
|
'';
|
2011-07-13 10:13:28 +01:00
|
|
|
|
2013-02-23 23:31:20 +00:00
|
|
|
#doCheck = true; # some tests fail (and they take VERY long)
|
|
|
|
|
2018-09-08 14:12:27 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-11-02 11:20:24 +00:00
|
|
|
description = "A free distributed version control system";
|
2018-09-08 14:12:27 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2;
|
2009-07-07 16:05:15 +01:00
|
|
|
};
|
2008-01-25 11:56:36 +00:00
|
|
|
}
|