1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/development/libraries/adns/default.nix
Peter Simons 71237fce00 adns: blind attempt to fix the shared library build on Darwin
svn path=/nixpkgs/trunk/; revision=27892
2011-07-21 21:26:21 +00:00

33 lines
897 B
Nix

{ stdenv, fetchurl }:
let
version = "1.4";
in
stdenv.mkDerivation {
name = "adns-${version}";
src = fetchurl {
urls = [
"http://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${version}.tar.gz"
"ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"
"mirror://gnu/adns/adns-${version}.tar.gz"
];
sha256 = "1zm99i9fd5gfijd144ajngn6x73563355im79sqdi98pj6ir4yvi";
};
preConfigure =
stdenv.lib.optionalString stdenv.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure";
# http://thread.gmane.org/gmane.linux.distributions.nixos/1328 for details.
doCheck = false;
meta = {
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
description = "Asynchronous DNS Resolver Library";
license = "LGPL-v2";
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}