11 stdenv.mkDerivation rec {
16 url = "https://www.bertnase.de/npiet/npiet-${version}.tar.gz";
17 sha256 = "sha256-Le2FYGKr1zWZ6F4edozmvGC6LbItx9aptidj3KBLhVo=";
20 buildInputs = [ gd giflib libpng ];
22 nativeBuildInputs = [ groff ];
25 # malloc.h is not needed because stdlib.h is already included.
26 # On macOS, malloc.h does not even exist, resulting in an error.
27 substituteInPlace npiet-foogol.c \
28 --replace '#include <malloc.h>' ""
30 substituteInPlace npietedit \
31 --replace 'exec wish' 'exec ${tk}/bin/wish'
35 description = "An interpreter for piet programs. Also includes npietedit and npiet-foogol";
37 npiet is an interpreter for the piet programming language.
38 Instead of text, piet programs are pictures. Commands are determined based on changes in color.
40 homepage = "https://www.bertnase.de/npiet/";
41 license = licenses.gpl2Only;
42 platforms = platforms.unix;
43 maintainers = with maintainers; [ Luflosi ];