git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #122251 from 7c6f434c/monotone-update
0bb11cbMichael Raskin
pkgs/applications/version-management/monotone/default.nix+30−10
@@ -1,10 +1,11 @@
1−{ lib, stdenv, fetchurl, boost, zlib, botan, libidn
1+{ lib, stdenv, fetchurl, fetchFromGitHub, boost, zlib, botan2, libidn
2−, lua, pcre, sqlite, perl, pkg-config, expect
2+, lua, pcre, sqlite, perl, pkg-config, expect, less
3, bzip2, gmp, openssl
3, bzip2, gmp, openssl
4+, autoreconfHook, texinfo
4}:
5}:
5
6
6let
7let
7− version = "1.1";
8+ version = "1.1-unstable-2021-05-01";
8 perlVersion = lib.getVersion perl;
9 perlVersion = lib.getVersion perl;
9in
10in
10
11
@@ -14,22 +15,41 @@ stdenv.mkDerivation rec {
14 pname = "monotone";
15 pname = "monotone";
15 inherit version;
16 inherit version;
16
17
17− src = fetchurl {
18+ # src = fetchurl {
18− url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.bz2";
19+ # url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.bz2";
19− sha256 = "124cwgi2q86hagslbk5idxbs9j896rfjzryhr6z63r6l485gcp7r";
20+ # sha256 = "124cwgi2q86hagslbk5idxbs9j896rfjzryhr6z63r6l485gcp7r";
21+ # };
22+
23+ # My mirror of upstream Monotone repository
24+ # Could fetchmtn, but circular dependency; snapshot requested
25+ # https://lists.nongnu.org/archive/html/monotone-devel/2021-05/msg00000.html
26+ src = fetchFromGitHub {
27+ owner = "7c6f434c";
28+ repo = "monotone-mirror";
29+ rev = "b30b0e1c16def043d2dad57d1467d5bfdecdb070";
30+ hash = "sha256:1hfy8vaap3184cd7h3qhz0da7c992idkc6q2nz9frhma45c5vgmd";
20 };
31 };
21
32
22 patches = [ ./monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch ];
33 patches = [ ./monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch ];
23
34
35+ postPatch = ''
36+ sed -e 's@/usr/bin/less@${less}/bin/less@' -i src/unix/terminal.cc
37+ '';
38+
24− nativeBuildInputs = [ pkg-config ];
39+ nativeBuildInputs = [ pkg-config autoreconfHook texinfo ];
25− buildInputs = [ boost zlib botan libidn lua pcre sqlite expect
40+ buildInputs = [ boost zlib botan2 libidn lua pcre sqlite expect
26− openssl gmp bzip2 ];
41+ openssl gmp bzip2 perl ];
27
42
28 postInstall = ''
43 postInstall = ''
29 mkdir -p $out/share/${pname}-${version}
44 mkdir -p $out/share/${pname}-${version}
30 cp -rv contrib/ $out/share/${pname}-${version}/contrib
45 cp -rv contrib/ $out/share/${pname}-${version}/contrib
31 mkdir -p $out/${perl.libPrefix}/${perlVersion}
46 mkdir -p $out/${perl.libPrefix}/${perlVersion}
32 cp -v contrib/Monotone.pm $out/${perl.libPrefix}/${perlVersion}
47 cp -v contrib/Monotone.pm $out/${perl.libPrefix}/${perlVersion}
48+
49+ patchShebangs "$out/share/monotone"
50+ patchShebangs "$out/share/${pname}-${version}"
51+
52+ find "$out"/share/{doc/monotone,${pname}-${version}}/contrib/ -type f | xargs sed -e 's@! */usr/bin/@!/usr/bin/env @; s@! */bin/bash@!/usr/bin/env bash@' -i
33 '';
53 '';
34
54
35 #doCheck = true; # some tests fail (and they take VERY long)
55 #doCheck = true; # some tests fail (and they take VERY long)
@@ -38,6 +58,6 @@ stdenv.mkDerivation rec {
38 description = "A free distributed version control system";
58 description = "A free distributed version control system";
39 maintainers = [ maintainers.raskin ];
59 maintainers = [ maintainers.raskin ];
40 platforms = platforms.unix;
60 platforms = platforms.unix;
41− license = licenses.gpl2;
61+ license = licenses.gpl2Plus;
42 };
62 };
43}
63}
pkgs/top-level/all-packages.nix−1
@@ -24744,7 +24744,6 @@ in
24744
24744
24745 monotone = callPackage ../applications/version-management/monotone {
24745 monotone = callPackage ../applications/version-management/monotone {
24746 lua = lua5;
24746 lua = lua5;
24747− botan = botan.override (x: { openssl = null; });
24748 };
24747 };
24749
24748
24750 monotoneViz = callPackage ../applications/version-management/monotone-viz {
24749 monotoneViz = callPackage ../applications/version-management/monotone-viz {