3
0
Fork 0
forked from mirrors/nixpkgs

openresolv: wrap resolvconf to set PATH

This commit is contained in:
Thomas Tuegel 2014-02-28 11:33:21 -06:00 committed by Domen Kožar
parent f3e23d60ef
commit c2e26097a7

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, makeWrapper, coreutils }:
stdenv.mkDerivation rec {
name = "openresolv-3.5.6";
@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "1n3cw1vbm7mh5d95ykhzdn2mrrf3pm65sp61p8iwydz1gqkp2inv";
};
buildInputs = [ makeWrapper ];
configurePhase =
''
cat > config.mk <<EOF
@ -23,6 +25,10 @@ stdenv.mkDerivation rec {
installFlags = "SYSCONFDIR=$(out)/etc";
postInstall = ''
wrapProgram "$out/sbin/resolvconf" --set PATH "${coreutils}/bin"
'';
meta = {
description = "A program to manage /etc/resolv.conf";
homepage = http://roy.marples.name/projects/openresolv;