nixpkgs-suyu/pkgs/applications/version-management/monotone/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, zlib, botan, libidn
2013-02-24 00:31:20 +01:00
, lua, pcre, sqlite, perl, pkgconfig, expect }:
let
version = "1.0";
perlVersion = (builtins.parseDrvName perl.name).version;
in
assert perlVersion != "";
stdenv.mkDerivation rec {
name = "monotone-${version}";
src = fetchurl {
url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.bz2";
sha256 = "5c530bc4652b2c08b5291659f0c130618a14780f075f981e947952dcaefc31dc";
};
2013-02-24 00:31:20 +01:00
patches = [ ./glibc-file-handle.patch ];
buildInputs = [ boost zlib botan libidn lua pcre sqlite pkgconfig expect ];
postInstall = ''
mkdir -p $out/share/${name}
cp -rv contrib/ $out/share/${name}/contrib
mkdir -p $out/lib/perl5/site_perl/${perlVersion}
cp -v contrib/Monotone.pm $out/lib/perl5/site_perl/${perlVersion}
'';
2013-02-24 00:31:20 +01:00
#doCheck = true; # some tests fail (and they take VERY long)
meta = {
description = "A free distributed version control system";
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.unix;
};
}