mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
openresolv: wrap resolvconf to set PATH
This commit is contained in:
parent
f3e23d60ef
commit
c2e26097a7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user