@@ -0,0 +1,30 @@
1+{ stdenv, writeText, fetchzip, coreutils, perl, gnutar, gzip }:
2+let
3+ version = "6M62";
4+in stdenv.mkDerivation {
5+ name = "inform7-${version}";
6+ buildInputs = [ perl coreutils gnutar gzip ];
7+ src = fetchzip {
8+ url = "http://inform7.com/download/content/6M62/I7_6M62_Linux_all.tar.gz";
9+ sha256 = "0bk0pfymvsn1g8ci0pfdw7dgrlzb232a8pc67y2xk6zgpf3m41vj";
10+ };
11+ preConfigure = "touch Makefile.PL";
12+ buildPhase = "";
13+ installPhase = ''
14+ mkdir -p $out
15+ pushd $src
16+ ./install-inform7.sh --prefix $out
17+ popd
18+
19+ substituteInPlace "$out/bin/i7" \
20+ --replace "/usr/bin/perl" "${perl}/bin/perl"
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "A design system for interactive fiction.";
25+ homepage = http://inform7.com/;
26+ license = licenses.artistic2;
27+ maintainers = with maintainers; [ mbbx6spp ];
28+ platforms = platforms.unix;
29+ };
30+}