Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchzip, autoreconfHook, bison, flex, help2man, perl, tk }: 2 3stdenv.mkDerivation rec { 4 pname = "ifm"; 5 version = "2015-11-08"; 6 7 src = fetchzip { 8 url = "https://bitbucket.org/zondo/ifm/get/dca0774e4d3a.zip"; 9 sha256 = "14af21qjd5jvsscm6vxpsdrnipdr33g6niagzmykrhyfhwcbjahi"; 10 }; 11 12 nativeBuildInputs = [ autoreconfHook bison flex help2man ]; 13 14 buildInputs = [ perl tk ]; # perl and wish are not run but written as shebangs. 15 16 # Workaround build failure on -fno-common toolchains: 17 # ld: libvars.a(vars-freeze-lex.o):src/libvars/vars-freeze-lex.l:23: 18 # multiple definition of `line_number'; ifm-main.o:src/ifm-main.c:46: first defined here 19 env.NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 enableParallelBuilding = false; # ifm-scan.l:16:10: fatal error: ifm-parse.h: No such file or directory 22 23 meta = with lib; { 24 homepage = "https://bitbucket.org/zondo/ifm"; 25 description = "Interactive fiction mapper"; 26 license = licenses.gpl2; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ orivej ]; 29 }; 30}