13 stdenv.mkDerivation (finalAttrs: {
18 url = "https://www.bertnase.de/npiet/npiet-${finalAttrs.version}.tar.gz";
19 hash = "sha256-Le2FYGKr1zWZ6F4edozmvGC6LbItx9aptidj3KBLhVo=";
28 nativeBuildInputs = [ groff ];
31 # malloc.h is not needed because stdlib.h is already included.
32 # On macOS, malloc.h does not even exist, resulting in an error.
33 substituteInPlace npiet-foogol.c \
34 --replace-fail '#include <malloc.h>' ""
36 substituteInPlace npietedit \
37 --replace-fail 'exec wish' 'exec ${tk}/bin/wish'
44 all-tests = callPackage ./tests { };
56 description = "Interpreter for piet programs. Also includes npietedit and npiet-foogol";
58 npiet is an interpreter for the piet programming language.
59 Instead of text, piet programs are pictures. Commands are determined based on changes in color.
61 homepage = "https://www.bertnase.de/npiet/";
62 changelog = "https://www.bertnase.de/npiet/ChangeLog";
63 license = lib.licenses.gpl2Only;
64 platforms = lib.platforms.unix;
65 mainProgram = "npiet";
66 maintainers = with lib.maintainers; [ Luflosi ];