git.iko.soy/typeable/nixpkgs
on master help sign in
tinc_pre: 1.1pre14 -> 1.1pre15

Remove an obsolete patch Add lassulus to maintainers Supply the build with the correct version number and changelog

commitf4dfa30d24caa2260e43f02cd1bdcd6379799c99 authorlassulus <lassulus@lassul.us> dateThu 14 Sep 2017, 22:12 (9 years ago) parent6f15e1d
1 file changed+7−11
pkgs/tools/networking/tinc/pre.nix+7−11
pkgs/tools/networking/tinc/pre.nix+7−11
@@ -2,12 +2,12 @@
22
33stdenv.mkDerivation rec {
44 name = "tinc-${version}";
5− version = "1.1pre14";
5+ version = "1.1pre15";
66
77 src = fetchgit {
88 rev = "refs/tags/release-${version}";
99 url = "git://tinc-vpn.org/tinc";
10− sha256 = "05an2vj0a3wjv5w672wgzyixbydin5jpja5zv6x81bc72dms0ymc";
10+ sha256 = "1msym63jpipvzb5dn8yn8yycrii43ncfq6xddxh2ifrakr48l6y5";
1111 };
1212
1313 outputs = [ "out" "man" "info" ];
@@ -15,18 +15,14 @@ stdenv.mkDerivation rec {
1515 nativeBuildInputs = [ autoreconfHook texinfo ];
1616 buildInputs = [ ncurses readline zlib lzo openssl ];
1717
18+ # needed so the build doesn't need to run git to find out the version.
1819 prePatch = ''
1920 substituteInPlace configure.ac --replace UNKNOWN ${version}
21+ echo "${version}" > configure-version
22+ echo "https://tinc-vpn.org/git/browse?p=tinc;a=log;h=refs/tags/release-${version}" > ChangeLog
23+ sed -i '/AC_INIT/s/m4_esyscmd_s.*/${version})/' configure.ac
2024 '';
2125
22− patches = [
23− # Avoid infinite loop with "Error while reading from Linux tun/tap device (tun mode) /dev/net/tun: File descriptor in bad state" on network restart
24− (fetchpatch {
25− url = https://github.com/gsliepen/tinc/compare/acefa66...e4544db.patch;
26− sha256 = "1jz7anqqzk7j96l5ifggc2knp14fmbsjdzfrbncxx0qhb6ihdcvn";
27− })
28− ];
29−
3026 postInstall = ''
3127 rm $out/bin/tinc-gui
3228 '';
@@ -47,6 +43,6 @@ stdenv.mkDerivation rec {
4743 homepage="http://www.tinc-vpn.org/";
4844 license = licenses.gpl2Plus;
4945 platforms = platforms.unix;
50− maintainers = with maintainers; [ wkennington fpletz ];
46+ maintainers = with maintainers; [ wkennington fpletz lassulus ];
5147 };
5248}