mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
571c71e6f7
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.
35 lines
1.1 KiB
Nix
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);
|
|
};
|
|
}
|