uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/tools/networking/openresolv/default.nix
Normal file
40
pkgs/tools/networking/openresolv/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, makeWrapper, coreutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openresolv";
|
||||
version = "3.12.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://roy/openresolv/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-QrMFCOhXoihTXGMeqsk2hi2G7KaMFLXAvzh7oXa5G5c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
configurePhase =
|
||||
''
|
||||
cat > config.mk <<EOF
|
||||
PREFIX=$out
|
||||
SYSCONFDIR=/etc
|
||||
SBINDIR=$out/sbin
|
||||
LIBEXECDIR=$out/libexec/resolvconf
|
||||
VARDIR=/run/resolvconf
|
||||
MANDIR=$out/share/man
|
||||
RESTARTCMD=false
|
||||
EOF
|
||||
'';
|
||||
|
||||
installFlags = [ "SYSCONFDIR=$(out)/etc" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/sbin/resolvconf" --set PATH "${coreutils}/bin"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A program to manage /etc/resolv.conf";
|
||||
homepage = "https://roy.marples.name/projects/openresolv";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = [ lib.maintainers.eelco ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue