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

44 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, boost, zlib, botan, libidn
, lua, pcre, sqlite, perl, pkg-config, expect
, bzip2, gmp, openssl
}:
let
version = "1.1";
2021-01-15 13:21:58 +00:00
perlVersion = lib.getVersion perl;
in
assert perlVersion != "";
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "monotone";
inherit version;
src = fetchurl {
url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.bz2";
sha256 = "124cwgi2q86hagslbk5idxbs9j896rfjzryhr6z63r6l485gcp7r";
};
2018-08-02 03:46:34 +00:00
patches = [ ./monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch ];
2013-02-23 23:31:20 +00:00
nativeBuildInputs = [ pkg-config ];
2018-09-08 13:12:27 +00:00
buildInputs = [ boost zlib botan libidn lua pcre sqlite expect
openssl gmp bzip2 ];
postInstall = ''
2019-08-13 21:52:01 +00:00
mkdir -p $out/share/${pname}-${version}
cp -rv contrib/ $out/share/${pname}-${version}/contrib
mkdir -p $out/${perl.libPrefix}/${perlVersion}
cp -v contrib/Monotone.pm $out/${perl.libPrefix}/${perlVersion}
'';
2013-02-23 23:31:20 +00:00
#doCheck = true; # some tests fail (and they take VERY long)
meta = with lib; {
description = "A free distributed version control system";
2018-09-08 13:12:27 +00:00
maintainers = [ maintainers.raskin ];
platforms = platforms.unix;
license = licenses.gpl2;
};
}