2011-01-14 13:37:26 +01:00
|
|
|
{ stdenv, fetchurl, boost, zlib, botan, libidn
|
2013-02-24 00:31:20 +01:00
|
|
|
, lua, pcre, sqlite, perl, pkgconfig, expect }:
|
2008-01-25 12:56:36 +01:00
|
|
|
|
2011-07-13 11:13:28 +02:00
|
|
|
let
|
2011-03-28 22:26:29 +02:00
|
|
|
version = "1.0";
|
2011-01-14 13:37:26 +01:00
|
|
|
perlVersion = (builtins.parseDrvName perl.name).version;
|
|
|
|
in
|
|
|
|
|
|
|
|
assert perlVersion != "";
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2009-03-25 17:06:00 +01:00
|
|
|
name = "monotone-${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";
|
|
|
|
sha256 = "5c530bc4652b2c08b5291659f0c130618a14780f075f981e947952dcaefc31dc";
|
2008-01-25 12:56:36 +01:00
|
|
|
};
|
2011-07-13 11:13:28 +02:00
|
|
|
|
2013-02-24 00:31:20 +01:00
|
|
|
patches = [ ./glibc-file-handle.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ boost zlib botan libidn lua pcre sqlite pkgconfig expect ];
|
2011-07-13 11:13:28 +02:00
|
|
|
|
2009-10-15 13:13:21 +02:00
|
|
|
postInstall = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/${name}
|
2010-09-09 22:05:00 +02:00
|
|
|
cp -rv contrib/ $out/share/${name}/contrib
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib/perl5/site_perl/${perlVersion}
|
2010-11-02 12:20:24 +01:00
|
|
|
cp -v contrib/Monotone.pm $out/lib/perl5/site_perl/${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)
|
|
|
|
|
2009-07-07 17:05:15 +02:00
|
|
|
meta = {
|
2010-11-02 12:20:24 +01:00
|
|
|
description = "A free distributed version control system";
|
2010-09-09 22:05:00 +02:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2011-07-13 11:13:22 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-07-07 17:05:15 +02:00
|
|
|
};
|
2008-01-25 12:56:36 +01:00
|
|
|
}
|