mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 11:02:05 +00:00
udns: init at 0.4
This commit is contained in:
parent
586d1f67ce
commit
f7e3f177d1
46
pkgs/development/libraries/udns/default.nix
Normal file
46
pkgs/development/libraries/udns/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
# this expression is mostly based on debian's packaging
|
||||
# https://tracker.debian.org/media/packages/u/udns/rules-0.4-1
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "udns-${version}";
|
||||
version = "0.4";
|
||||
|
||||
configurePhase = "./configure --enable-ipv6";
|
||||
|
||||
buildPhase = "make staticlib sharedlib rblcheck_s dnsget_s";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.corpit.ru/mjt/udns/${name}.tar.gz";
|
||||
sha256 = "0447fv1hmb44nnchdn6p5pd9b44x8p5jn0ahw6crwbqsg7f0hl8i";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/include
|
||||
mkdir -p $out/lib
|
||||
mkdir -p $out/share/man/man1
|
||||
mkdir -p $out/share/man/man3
|
||||
cp dnsget_s $out/bin/dnsget
|
||||
cp rblcheck_s $out/bin/rblcheck
|
||||
cp udns.h $out/include/
|
||||
cp libudns.a $out/lib/
|
||||
cp libudns.so.0 $out/lib/
|
||||
ln -rs $out/lib/libudns.so.0 $out/lib/libudns.so
|
||||
cp dnsget.1 rblcheck.1 $out/share/man/man1
|
||||
cp udns.3 $out/share/man/man3
|
||||
'';
|
||||
|
||||
# keep man3
|
||||
outputDocdev = "out";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.corpit.ru/mjt/udns.html;
|
||||
description = "Async-capable DNS stub resolver library";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = [ maintainers.womfoo ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
}
|
|
@ -8998,6 +8998,8 @@ in
|
|||
|
||||
tremor = callPackage ../development/libraries/tremor { };
|
||||
|
||||
udns = callPackage ../development/libraries/udns { };
|
||||
|
||||
uid_wrapper = callPackage ../development/libraries/uid_wrapper { };
|
||||
|
||||
unibilium = callPackage ../development/libraries/unibilium { };
|
||||
|
|
Loading…
Reference in a new issue