mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
28 lines
677 B
Nix
28 lines
677 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "pdnsd-1.2.9a-par";
|
|
|
|
src = fetchurl {
|
|
url = "http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-1.2.9a-par.tar.gz";
|
|
sha256 = "0yragv5zk77a1hfkpnsh17vvsw8b14d6mzfng4bb7i58rb83an5v";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i 's/.*(cachedir).*/:/' Makefile.in
|
|
'';
|
|
|
|
configureFlags = [ "--enable-ipv6" ];
|
|
|
|
# fix ipv6 on darwin
|
|
CPPFLAGS = "-D__APPLE_USE_RFC_3542";
|
|
|
|
meta = with lib; {
|
|
description = "Permanent DNS caching";
|
|
homepage = "http://members.home.nl/p.a.rombouts/pdnsd";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [viric];
|
|
};
|
|
}
|