Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 57 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 which, 6 bison, 7 flex, 8 libmaa, 9 zlib, 10 libtool, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "dictd"; 15 version = "1.13.3"; 16 17 src = fetchurl { 18 url = "mirror://sourceforge/dict/dictd-${version}.tar.gz"; 19 hash = "sha256-GSEp37OPpyP0ipWGx5xRmPxJBP7BdXF2kXMU3Qc/EXE="; 20 }; 21 22 patches = [ 23 ./buildfix.diff 24 ]; 25 26 buildInputs = [ 27 libmaa 28 zlib 29 ]; 30 31 nativeBuildInputs = [ 32 bison 33 flex 34 libtool 35 which 36 ]; 37 38 # In earlier versions, parallel building was not supported but it's OK with 1.13 39 enableParallelBuilding = true; 40 41 configureFlags = [ 42 "--datadir=/run/current-system/sw/share/dictd" 43 "--sysconfdir=/etc" 44 ]; 45 46 postInstall = '' 47 install -Dm444 -t $out/share/doc/${pname} NEWS README 48 ''; 49 50 meta = { 51 description = "Dict protocol server and client"; 52 homepage = "http://www.dict.org"; 53 license = lib.licenses.gpl2Plus; 54 maintainers = with lib.maintainers; [ sikmir ]; 55 platforms = lib.platforms.unix; 56 }; 57}