2009-03-25 17:06:00 +01:00
|
|
|
{stdenv, fetchurl, boost, zlib, botan, libidn,
|
2010-09-09 22:05:00 +02:00
|
|
|
lua, pcre, sqlite, perl, pkgconfig}:
|
2008-01-25 12:56:36 +01:00
|
|
|
|
2009-03-25 17:06:00 +01:00
|
|
|
let
|
2010-11-02 12:20:24 +01:00
|
|
|
version = "0.99.1";
|
|
|
|
perlVersion = builtins.substring 5 10 perl.name;
|
2009-10-15 13:13:21 +02:00
|
|
|
in stdenv.mkDerivation rec {
|
2009-03-25 17:06:00 +01:00
|
|
|
name = "monotone-${version}";
|
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-11-02 12:20:24 +01:00
|
|
|
sha256 = "189h5f6gqd4ng0qmzi3xwnj17nnpxm2vzras216ar6b5yc9bnki0";
|
2008-01-25 12:56:36 +01:00
|
|
|
};
|
2010-09-09 22:05:00 +02:00
|
|
|
buildInputs = [boost zlib botan libidn lua pcre sqlite pkgconfig];
|
2009-10-15 13:13:21 +02:00
|
|
|
postInstall = ''
|
|
|
|
ensureDir $out/share/${name}
|
2010-09-09 22:05:00 +02:00
|
|
|
cp -rv contrib/ $out/share/${name}/contrib
|
2010-11-02 12:20:24 +01:00
|
|
|
ensureDir $out/lib/perl5/site_perl/${perlVersion}
|
|
|
|
cp -v contrib/Monotone.pm $out/lib/perl5/site_perl/${perlVersion}
|
2009-10-15 13:13:21 +02:00
|
|
|
'';
|
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];
|
2010-11-02 12:20:24 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2009-07-07 17:05:15 +02:00
|
|
|
};
|
2008-01-25 12:56:36 +01:00
|
|
|
}
|