about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-12-13 15:46:26 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-12-13 15:48:00 +0100
commitd43dc3d38bf5aae89de8ba4b3a8f59793da24737 (patch)
tree15b34bc4e8be2ddd4a58f75020354b0b8c924a45 /pkgs/development/compilers
parent8c0f4755bd086a8a07c2ff3799273e5b4f7e3699 (diff)
parent8d926260ef93e20fe66b6e3743a410151a067d4a (diff)
downloadnixlib-d43dc3d38bf5aae89de8ba4b3a8f59793da24737.tar
nixlib-d43dc3d38bf5aae89de8ba4b3a8f59793da24737.tar.gz
nixlib-d43dc3d38bf5aae89de8ba4b3a8f59793da24737.tar.bz2
nixlib-d43dc3d38bf5aae89de8ba4b3a8f59793da24737.tar.lz
nixlib-d43dc3d38bf5aae89de8ba4b3a8f59793da24737.tar.xz
nixlib-d43dc3d38bf5aae89de8ba4b3a8f59793da24737.tar.zst
nixlib-d43dc3d38bf5aae89de8ba4b3a8f59793da24737.zip
Merge #20908: inform7: init at 6M62
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/inform7/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/compilers/inform7/default.nix b/pkgs/development/compilers/inform7/default.nix
new file mode 100644
index 000000000000..7f1830430c45
--- /dev/null
+++ b/pkgs/development/compilers/inform7/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, writeText, fetchzip, coreutils, perl, gnutar, gzip }:
+let
+  version = "6M62";
+in stdenv.mkDerivation {
+  name = "inform7-${version}";
+  buildInputs = [ perl coreutils gnutar gzip ];
+  src = fetchzip {
+    url = "http://inform7.com/download/content/6M62/I7_6M62_Linux_all.tar.gz";
+    sha256 = "0bk0pfymvsn1g8ci0pfdw7dgrlzb232a8pc67y2xk6zgpf3m41vj";
+  };
+  preConfigure = "touch Makefile.PL";
+  buildPhase = "";
+  installPhase = ''
+    mkdir -p $out
+    pushd $src
+    ./install-inform7.sh --prefix $out
+    popd
+
+    substituteInPlace "$out/bin/i7" \
+      --replace "/usr/bin/perl" "${perl}/bin/perl"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A design system for interactive fiction.";
+    homepage = http://inform7.com/;
+    license = licenses.artistic2;
+    maintainers = with maintainers; [ mbbx6spp ];
+    platforms = platforms.unix;
+  };
+}