2009-03-25 17:06:00 +01:00
|
|
|
{stdenv, fetchurl, boost, zlib, botan, libidn,
|
2009-10-15 13:13:21 +02:00
|
|
|
lua, pcre, sqlite, perl, lib}:
|
2008-01-25 12:56:36 +01:00
|
|
|
|
2009-03-25 17:06:00 +01:00
|
|
|
let
|
2010-03-17 16:13:13 +01:00
|
|
|
version = "0.47";
|
2009-10-15 13:13:21 +02:00
|
|
|
in stdenv.mkDerivation rec {
|
2009-03-25 17:06:00 +01:00
|
|
|
name = "monotone-${version}";
|
2009-10-15 13:13:21 +02:00
|
|
|
inherit perl;
|
2008-01-25 12:56:36 +01:00
|
|
|
src = fetchurl {
|
2009-03-25 17:06:00 +01:00
|
|
|
url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.gz";
|
2010-03-17 16:13:13 +01:00
|
|
|
sha256 = "7a99f1a5e4eb2bb7bf82794ab7fc61435fbc55826b710243243c52f7b10be51b";
|
2008-01-25 12:56:36 +01:00
|
|
|
};
|
2009-03-25 17:06:00 +01:00
|
|
|
buildInputs = [boost zlib botan libidn lua pcre sqlite];
|
|
|
|
preConfigure = ''
|
|
|
|
export sqlite_LIBS=-lsqlite3
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -ldl"
|
|
|
|
'';
|
2009-10-15 13:13:21 +02:00
|
|
|
postInstall = ''
|
|
|
|
ensureDir $out/share/${name}
|
|
|
|
cp -r contrib/ $out/share/${name}/contrib
|
|
|
|
ensureDir $out/lib/perl5/site_perl/''${perl##*-perl-}
|
|
|
|
cp contrib/Monotone.pm $out/lib/perl5/site_perl/''${perl##*-perl-}
|
|
|
|
'';
|
2009-07-07 17:05:15 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
};
|
2008-01-25 12:56:36 +01:00
|
|
|
}
|