Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 54 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 autoreconfHook, 6 pkg-config, 7 bison, 8 flex, 9 openssl, 10}: 11 12stdenv.mkDerivation { 13 pname = "bip"; 14 version = "0.9.3"; 15 16 src = fetchurl { 17 # Note that the number behind download is not predictable 18 url = "https://projects.duckcorp.org/attachments/download/146/bip-0.9.3.tar.gz"; 19 hash = "sha256-K+6AC8mg0aLQsCgiDoFBM5w2XrR+V2tfWnI8ByeRmOI="; 20 }; 21 22 outputs = [ 23 "out" 24 "man" 25 "doc" 26 ]; 27 28 postPatch = '' 29 # Drop blanket -Werror to avoid build failure on fresh toolchains 30 # and libraries. Without the cnage build fails on gcc-13 and on 31 # openssl-3. 32 substituteInPlace src/Makefile.am --replace-fail ' -Werror ' ' ' 33 ''; 34 35 nativeBuildInputs = [ 36 autoreconfHook 37 pkg-config 38 ]; 39 buildInputs = [ 40 bison 41 flex 42 openssl 43 ]; 44 45 enableParallelBuilding = true; 46 47 meta = { 48 description = "IRC proxy (bouncer)"; 49 homepage = "http://bip.milkypond.org/"; 50 license = lib.licenses.gpl2; 51 downloadPage = "https://projects.duckcorp.org/projects/bip/files"; 52 platforms = lib.platforms.linux; 53 }; 54}