nixpkgs/pkgs/tools/networking/openresolv/default.nix

32 lines
715 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2013-12-13 22:07:29 +01:00
name = "openresolv-3.5.6";
src = fetchurl {
url = "http://roy.marples.name/downloads/openresolv/${name}.tar.bz2";
2013-12-13 22:07:29 +01:00
sha256 = "1n3cw1vbm7mh5d95ykhzdn2mrrf3pm65sp61p8iwydz1gqkp2inv";
};
configurePhase =
''
cat > config.mk <<EOF
PREFIX=$out
SYSCONFDIR=/etc
SBINDIR=$out/sbin
LIBEXECDIR=$out/libexec/resolvconf
VARDIR=/var/run/resolvconf
MANDIR=$out/share/man
RESTARTCMD="false \1"
EOF
'';
installFlags = "SYSCONFDIR=$(out)/etc";
meta = {
description = "A program to manage /etc/resolv.conf";
homepage = http://roy.marples.name/projects/openresolv;
license = "bsd";
};
}