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