2009-03-25 19:06:00 +03:00
|
|
|
{stdenv, fetchurl, boost, zlib, botan, libidn,
|
2010-09-10 00:05:00 +04:00
|
|
|
lua, pcre, sqlite, perl, pkgconfig}:
|
2008-01-25 14:56:36 +03:00
|
|
|
|
2009-03-25 19:06:00 +03:00
|
|
|
let
|
2010-10-23 19:28:18 +04:00
|
|
|
version = "0.48.1";
|
2009-10-15 15:13:21 +04:00
|
|
|
in stdenv.mkDerivation rec {
|
2009-03-25 19:06:00 +03:00
|
|
|
name = "monotone-${version}";
|
2009-10-15 15:13:21 +04:00
|
|
|
inherit perl;
|
2008-01-25 14:56:36 +03:00
|
|
|
src = fetchurl {
|
2009-03-25 19:06:00 +03:00
|
|
|
url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.gz";
|
2010-10-23 19:28:18 +04:00
|
|
|
sha256 = "e5ab4917866d2c597f99577554549b7c4cda9895be7a5dd0469f1c7798fe3c10";
|
2008-01-25 14:56:36 +03:00
|
|
|
};
|
2010-09-10 00:05:00 +04:00
|
|
|
buildInputs = [boost zlib botan libidn lua pcre sqlite pkgconfig];
|
2009-10-15 15:13:21 +04:00
|
|
|
postInstall = ''
|
|
|
|
ensureDir $out/share/${name}
|
2010-09-10 00:05:00 +04:00
|
|
|
cp -rv contrib/ $out/share/${name}/contrib
|
2009-10-15 15:13:21 +04:00
|
|
|
ensureDir $out/lib/perl5/site_perl/''${perl##*-perl-}
|
2010-09-10 00:05:00 +04:00
|
|
|
cp -v contrib/Monotone.pm $out/lib/perl5/site_perl/''${perl##*-perl-}
|
2009-10-15 15:13:21 +04:00
|
|
|
'';
|
2009-07-07 19:05:15 +04:00
|
|
|
meta = {
|
2010-09-10 00:05:00 +04:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2009-07-07 19:05:15 +04:00
|
|
|
};
|
2008-01-25 14:56:36 +03:00
|
|
|
}
|