nixpkgs/pkgs/by-name/in/inform7/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

35 lines
1.1 KiB
Nix

{ lib, stdenv, fetchzip, coreutils, perl, gnutar, gzip }:
let
version = "6M62";
in stdenv.mkDerivation {
pname = "inform7";
inherit 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 lib; {
description = "Design system for interactive fiction";
mainProgram = "i7";
homepage = "http://inform7.com/";
license = licenses.artistic2;
maintainers = with maintainers; [ mbbx6spp ];
platforms = platforms.unix;
# never built on aarch64-darwin since first introduction in nixpkgs
broken = (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
};
}