diff options
-rw-r--r-- | pkgs/development/libraries/adns/1.1.nix | 9 | ||||
-rw-r--r-- | pkgs/development/libraries/adns/1.2.nix | 9 | ||||
-rw-r--r-- | pkgs/development/libraries/adns/1.3.nix | 9 | ||||
-rw-r--r-- | pkgs/development/libraries/adns/1.4.nix | 9 | ||||
-rw-r--r-- | pkgs/development/libraries/adns/default.nix | 24 |
5 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/libraries/adns/1.1.nix b/pkgs/development/libraries/adns/1.1.nix new file mode 100644 index 0000000000000..2eab5b7dd7dd1 --- /dev/null +++ b/pkgs/development/libraries/adns/1.1.nix @@ -0,0 +1,9 @@ +{ stdenv, fetchurl, version, static }: + +assert version == "1.1"; + +import ./default.nix +{ + inherit stdenv fetchurl static version; + versionHash = "02plci50c7svbq15284z40c5aglydzh2zp68dj4lnigaxr6vm5vn"; +} diff --git a/pkgs/development/libraries/adns/1.2.nix b/pkgs/development/libraries/adns/1.2.nix new file mode 100644 index 0000000000000..8afb5067803a7 --- /dev/null +++ b/pkgs/development/libraries/adns/1.2.nix @@ -0,0 +1,9 @@ +{ stdenv, fetchurl, version, static }: + +assert version == "1.2"; + +import ./default.nix +{ + inherit stdenv fetchurl static version; + versionHash = "0jn03hz6q4r6x40cxc94n38mxxj45f73xqisi0sh7zmvixh3qhi2"; +} diff --git a/pkgs/development/libraries/adns/1.3.nix b/pkgs/development/libraries/adns/1.3.nix new file mode 100644 index 0000000000000..b34eb4d3a7004 --- /dev/null +++ b/pkgs/development/libraries/adns/1.3.nix @@ -0,0 +1,9 @@ +{ stdenv, fetchurl, version, static }: + +assert version == "1.3"; + +import ./default.nix +{ + inherit stdenv fetchurl static version; + versionHash = "05hd7qspvlsac9bqzx86r5a1wv7x1zdmqx6pi3ddk094m0n4bqn6"; +} diff --git a/pkgs/development/libraries/adns/1.4.nix b/pkgs/development/libraries/adns/1.4.nix new file mode 100644 index 0000000000000..dad2dd6782318 --- /dev/null +++ b/pkgs/development/libraries/adns/1.4.nix @@ -0,0 +1,9 @@ +{ stdenv, fetchurl, version, static }: + +assert version == "1.4"; + +import ./default.nix +{ + inherit stdenv fetchurl static version; + versionHash = "1zm99i9fd5gfijd144ajngn6x73563355im79sqdi98pj6ir4yvi"; +} diff --git a/pkgs/development/libraries/adns/default.nix b/pkgs/development/libraries/adns/default.nix new file mode 100644 index 0000000000000..d825f00528a17 --- /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; +} |