Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 62 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 pkg-config, 7 apacheHttpd, 8 apr, 9 avahi, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "mod_dnssd"; 14 version = "0.6"; 15 16 src = fetchurl { 17 url = "http://0pointer.de/lennart/projects/mod_dnssd/${pname}-${version}.tar.gz"; 18 sha256 = "2cd171d76eba398f03c1d5bcc468a1756f4801cd8ed5bd065086e4374997c5aa"; 19 }; 20 21 configureFlags = [ 22 "--disable-lynx" 23 "--with-apxs=${lib.getDev apacheHttpd}/bin" 24 ]; 25 26 nativeBuildInputs = [ pkg-config ]; 27 buildInputs = [ 28 apacheHttpd 29 avahi 30 apr 31 ]; 32 33 patches = [ 34 (fetchpatch { 35 url = "https://sources.debian.org/data/main/m/mod-dnssd/0.6-5/debian/patches/port-for-apache2.4.patch"; 36 hash = "sha256-jWWzZDpZdveXlLpo7pN0tMQZkjYUbpz/DRjm6T6pCzY="; 37 }) 38 ]; 39 40 installPhase = '' 41 runHook preInstall 42 43 mkdir -p $out/modules 44 cp src/.libs/mod_dnssd.so $out/modules 45 46 runHook postInstall 47 ''; 48 49 preFixup = '' 50 # TODO: Packages in non-standard directories not stripped. 51 # https://github.com/NixOS/nixpkgs/issues/141554 52 stripDebugList=modules 53 ''; 54 55 meta = { 56 homepage = "https://0pointer.de/lennart/projects/mod_dnssd"; 57 description = "Provide Zeroconf support via DNS-SD using Avahi"; 58 license = lib.licenses.asl20; 59 platforms = lib.platforms.linux; 60 maintainers = [ ]; 61 }; 62}