From 8d926260ef93e20fe66b6e3743a410151a067d4a Mon Sep 17 00:00:00 2001 From: Susan Potter Date: Sun, 4 Dec 2016 17:22:54 -0600 Subject: [PATCH] inform7: init at 6M62 --- lib/maintainers.nix | 1 + .../development/compilers/inform7/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 33 insertions(+) create mode 100644 pkgs/development/compilers/inform7/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index b908a261b1f..76c27f30f07 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -272,6 +272,7 @@ matthiasbeyer = "Matthias Beyer "; maurer = "Matthew Maurer "; mbakke = "Marius Bakke "; + mbbx6spp = "Susan Potter "; mbe = "Brandon Edens "; mboes = "Mathieu Boespflug "; mcmtroffaes = "Matthias C. M. Troffaes "; diff --git a/pkgs/development/compilers/inform7/default.nix b/pkgs/development/compilers/inform7/default.nix new file mode 100644 index 00000000000..7f1830430c4 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e45c01bd821..75bec95318b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2230,6 +2230,8 @@ in inetutils = callPackage ../tools/networking/inetutils { }; + inform7 = callPackage ../development/compilers/inform7 { }; + innoextract = callPackage ../tools/archivers/innoextract { }; ioping = callPackage ../tools/system/ioping { };