mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
4a5824721a
`perl.name' evaluates to "perl" (since there are not enough characters in the string). It's better to use builtins.parseDrvName. svn path=/nixpkgs/trunk/; revision=25559
34 lines
920 B
Nix
34 lines
920 B
Nix
{ stdenv, fetchurl, boost, zlib, botan, libidn
|
|
, lua, pcre, sqlite, perl, pkgconfig }:
|
|
|
|
let
|
|
version = "0.99.1";
|
|
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.gz";
|
|
sha256 = "189h5f6gqd4ng0qmzi3xwnj17nnpxm2vzras216ar6b5yc9bnki0";
|
|
};
|
|
|
|
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/${perlVersion}
|
|
cp -v contrib/Monotone.pm $out/lib/perl5/site_perl/${perlVersion}
|
|
'';
|
|
|
|
meta = {
|
|
description = "A free distributed version control system";
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|