git.iko.soy/typeable/nixpkgs
on master help sign in
dnscrypt-proxy: 1.7.0 -> 1.9.0

Release notes at: https://github.com/jedisct1/dnscrypt-proxy/releases/tag/1.9.0 Packaging tweaks: - No longer split man page, kind of pointless ... - No longer install libtool files, they are now optional

commit64f45520b972d5ea01c0ca0d0dad5245752a863f authorJoachim Fasting <joachifm@fastmail.fm> dateFri 30 Dec 2016, 05:33 (10 years ago) parentfd826a0
1 file changed+16−4
pkgs/tools/networking/dnscrypt-proxy/default.nix+16−4
pkgs/tools/networking/dnscrypt-proxy/default.nix+16−4
@@ -1,14 +1,14 @@
1−{ stdenv, fetchurl, libsodium, pkgconfig, systemd }:
1+{ stdenv, fetchurl, pkgconfig, libsodium, systemd }:
22
33with stdenv.lib;
44
55stdenv.mkDerivation rec {
66 name = "dnscrypt-proxy-${version}";
7− version = "1.7.0";
7+ version = "1.9.0";
88
99 src = fetchurl {
1010 url = "https://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2";
11− sha256 = "1qw2nib0d5ia8581lbdnjxgn9c7pf2qw8vhpnnh1wjcjj3gpgbqx";
11+ sha256 = "0v5rsn9zdakzn6rcf2qhjqfd2y4h8q0hj4xr5hwhvaskg213rsyp";
1212 };
1313
1414 configureFlags = optional stdenv.isLinux "--with-systemd";
@@ -17,7 +17,19 @@ stdenv.mkDerivation rec {
1717
1818 buildInputs = [ libsodium ] ++ optional stdenv.isLinux systemd;
1919
20− outputs = [ "out" "man" ];
20+ postInstall = ''
21+ # Previous versions required libtool files to load plugins; they are
22+ # now strictly optional.
23+ rm $out/lib/dnscrypt-proxy/*.la
24+
25+ # The installation ends up copying the same sample configuration
26+ # into $out/etc twice, with the expectation that one of them will be
27+ # edited by the user. Since we can't modify the file, it makes more
28+ # sense to move only a single copy to the doc directory.
29+ mkdir -p $out/share/doc/dnscrypt-proxy
30+ mv $out/etc/dnscrypt-proxy.conf.example $out/share/doc/dnscrypt-proxy/
31+ rm -rf $out/etc
32+ '';
2133
2234 meta = {
2335 description = "A tool for securing communications between a client and a DNS resolver";