mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
fb8e2ed6be
svn path=/nixpkgs/trunk/; revision=23708
24 lines
749 B
Nix
24 lines
749 B
Nix
{stdenv, fetchurl, boost, zlib, botan, libidn,
|
|
lua, pcre, sqlite, perl, pkgconfig}:
|
|
|
|
let
|
|
version = "0.48";
|
|
in stdenv.mkDerivation rec {
|
|
name = "monotone-${version}";
|
|
inherit perl;
|
|
src = fetchurl {
|
|
url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.gz";
|
|
sha256 = "3149abf0e4433a0e14c5da805a04dbbc45b16086bc267d473b17e933407d839d";
|
|
};
|
|
buildInputs = [boost zlib botan libidn lua pcre sqlite pkgconfig];
|
|
postInstall = ''
|
|
ensureDir $out/share/${name}
|
|
cp -rv contrib/ $out/share/${name}/contrib
|
|
ensureDir $out/lib/perl5/site_perl/''${perl##*-perl-}
|
|
cp -v contrib/Monotone.pm $out/lib/perl5/site_perl/''${perl##*-perl-}
|
|
'';
|
|
meta = {
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
};
|
|
}
|