diff options
author | Peter Simons <simons@cryp.to> | 2008-06-18 21:29:42 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2008-06-18 21:29:42 +0000 |
commit | fee96dabb7c1fe3404f6d61707420af18a12eff3 (patch) | |
tree | ef021aa1c548e0c7bca0e0c8e6a171e716f83064 /pkgs/development/libraries/adns/default.nix | |
parent | f8465d0d488de177dbdc71979760da1391deeeb3 (diff) | |
download | nixpkgs-fee96dabb7c1fe3404f6d61707420af18a12eff3.tar nixpkgs-fee96dabb7c1fe3404f6d61707420af18a12eff3.tar.gz nixpkgs-fee96dabb7c1fe3404f6d61707420af18a12eff3.tar.bz2 nixpkgs-fee96dabb7c1fe3404f6d61707420af18a12eff3.tar.lz nixpkgs-fee96dabb7c1fe3404f6d61707420af18a12eff3.tar.xz nixpkgs-fee96dabb7c1fe3404f6d61707420af18a12eff3.tar.zst nixpkgs-fee96dabb7c1fe3404f6d61707420af18a12eff3.zip |
Added a nix expression for GNU ADNS. The version-specific files merely
forward the appropriate hash value to the generic driver found in default.nix. svn path=/nixpkgs/trunk/; revision=12153
Diffstat (limited to 'pkgs/development/libraries/adns/default.nix')
-rw-r--r-- | pkgs/development/libraries/adns/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/libraries/adns/default.nix b/pkgs/development/libraries/adns/default.nix new file mode 100644 index 00000000000..d825f00528a --- /dev/null +++ b/pkgs/development/libraries/adns/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, version, versionHash, static }: + +stdenv.mkDerivation +{ + name = "adns-${version}"; + meta = + { + homepage = "http://www.chiark.greenend.org.uk/~ian/adns/"; + description = "Asynchronous DNS Resolver Library"; + license = "LGPL-v2"; + }; + src = fetchurl + { + url = "ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"; + sha256 = "${versionHash}"; + }; + configureFlags = if static then "--disable-dynamic" else "--enable-dynamic"; + CPPFLAGS = "-DNDEBUG"; + CFLAGS = "-O3"; + doCheck = 1; + + # adns doesn't understand the automatic --disable-shared from the Cygwin stdenv. + cygwinConfigureEnableShared = true; +} |