@@ -0,0 +1,25 @@
1+{ lib, stdenv, fetchzip, autoreconfHook, bison, flex, help2man, perl, tk }:
2+
3+stdenv.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+ enableParallelBuilding = false; # ifm-scan.l:16:10: fatal error: ifm-parse.h: No such file or directory
17+
18+ meta = with lib; {
19+ homepage = https://bitbucket.org/zondo/ifm;
20+ description = "Interactive fiction mapper";
21+ license = licenses.gpl2;
22+ platforms = platforms.linux;
23+ maintainers = with maintainers; [ orivej ];
24+ };
25+}