Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 44 lines 1.4 kB view raw
1{ lib, stdenv, fetchurl, fetchpatch, pkg-config, apacheHttpd, apr, avahi }: 2 3stdenv.mkDerivation rec { 4 pname = "mod_dnssd"; 5 version = "0.6"; 6 7 src = fetchurl { 8 url = "http://0pointer.de/lennart/projects/mod_dnssd/${pname}-${version}.tar.gz"; 9 sha256 = "2cd171d76eba398f03c1d5bcc468a1756f4801cd8ed5bd065086e4374997c5aa"; 10 }; 11 12 configureFlags = [ "--disable-lynx" ]; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ apacheHttpd avahi apr ]; 16 17 patches = [ (fetchpatch { 18 url = "http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/mod-dnssd/vivid/download/package-import%40ubuntu.com-20130530193334-kqebiy78q534or5k/portforapache2.4.pat-20130530222510-7tlw5btqchd04edb-3/port-for-apache2.4.patch"; 19 sha256 = "1hgcxwy1q8fsxfqyg95w8m45zbvxzskf1jxd87ljj57l7x1wwp4r"; 20 }) ]; 21 22 installPhase = '' 23 runHook preInstall 24 25 mkdir -p $out/modules 26 cp src/.libs/mod_dnssd.so $out/modules 27 28 runHook postInstall 29 ''; 30 31 preFixup = '' 32 # TODO: Packages in non-standard directories not stripped. 33 # https://github.com/NixOS/nixpkgs/issues/141554 34 stripDebugList=modules 35 ''; 36 37 meta = with lib; { 38 homepage = "http://0pointer.de/lennart/projects/mod_dnssd"; 39 description = "Provide Zeroconf support via DNS-SD using Avahi"; 40 license = licenses.asl20; 41 platforms = platforms.linux; 42 maintainers = with maintainers; [ ]; 43 }; 44}