summary refs log tree commit diff
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-09-14 22:12:08 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-09-15 17:54:20 +0200
commitf4dfa30d24caa2260e43f02cd1bdcd6379799c99 (patch)
tree4c89b77ca92ce258ba5fa075c3324bc59c63dc18
parent6f15e1d3c9dede9c60becfbfe357d4e70d422dd2 (diff)
downloadnixlib-f4dfa30d24caa2260e43f02cd1bdcd6379799c99.tar
nixlib-f4dfa30d24caa2260e43f02cd1bdcd6379799c99.tar.gz
nixlib-f4dfa30d24caa2260e43f02cd1bdcd6379799c99.tar.bz2
nixlib-f4dfa30d24caa2260e43f02cd1bdcd6379799c99.tar.lz
nixlib-f4dfa30d24caa2260e43f02cd1bdcd6379799c99.tar.xz
nixlib-f4dfa30d24caa2260e43f02cd1bdcd6379799c99.tar.zst
nixlib-f4dfa30d24caa2260e43f02cd1bdcd6379799c99.zip
tinc_pre: 1.1pre14 -> 1.1pre15
Remove an obsolete patch
Add lassulus to maintainers
Supply the build with the correct version number and changelog
-rw-r--r--pkgs/tools/networking/tinc/pre.nix18
1 files changed, 7 insertions, 11 deletions
diff --git a/pkgs/tools/networking/tinc/pre.nix b/pkgs/tools/networking/tinc/pre.nix
index 38ba5accbb33..0f5fd2836921 100644
--- a/pkgs/tools/networking/tinc/pre.nix
+++ b/pkgs/tools/networking/tinc/pre.nix
@@ -2,12 +2,12 @@
 
 stdenv.mkDerivation rec {
   name = "tinc-${version}";
-  version = "1.1pre14";
+  version = "1.1pre15";
 
   src = fetchgit {
     rev = "refs/tags/release-${version}";
     url = "git://tinc-vpn.org/tinc";
-    sha256 = "05an2vj0a3wjv5w672wgzyixbydin5jpja5zv6x81bc72dms0ymc";
+    sha256 = "1msym63jpipvzb5dn8yn8yycrii43ncfq6xddxh2ifrakr48l6y5";
   };
 
   outputs = [ "out" "man" "info" ];
@@ -15,18 +15,14 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ autoreconfHook texinfo ];
   buildInputs = [ ncurses readline zlib lzo openssl ];
 
+  # needed so the build doesn't need to run git to find out the version.
   prePatch = ''
     substituteInPlace configure.ac --replace UNKNOWN ${version}
+    echo "${version}" > configure-version
+    echo "https://tinc-vpn.org/git/browse?p=tinc;a=log;h=refs/tags/release-${version}" > ChangeLog
+    sed -i '/AC_INIT/s/m4_esyscmd_s.*/${version})/' configure.ac
   '';
 
-  patches = [
-    # 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
-    (fetchpatch {
-      url = https://github.com/gsliepen/tinc/compare/acefa66...e4544db.patch;
-      sha256 = "1jz7anqqzk7j96l5ifggc2knp14fmbsjdzfrbncxx0qhb6ihdcvn";
-    })
-  ];
-
   postInstall = ''
     rm $out/bin/tinc-gui
   '';
@@ -47,6 +43,6 @@ stdenv.mkDerivation rec {
     homepage="http://www.tinc-vpn.org/";
     license = licenses.gpl2Plus;
     platforms = platforms.unix;
-    maintainers = with maintainers; [ wkennington fpletz ];
+    maintainers = with maintainers; [ wkennington fpletz lassulus ];
   };
 }