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