7 stdenv.mkDerivation (finalAttrs: {
12 url = "https://sourceforge.net/projects/forth-4th/files/4th-${finalAttrs.version}/4th-${finalAttrs.version}-unix.tar.gz";
13 hash = "sha256-+W6nTNsqrf3Dvr+NbSz3uJdrXVbBI3OHR5v/rs7en+M=";
22 # Fix install manual; report this patch to upstream
23 ./001-install-manual-fixup.diff
35 install -d ${placeholder "out"}/bin \
36 ${placeholder "out"}/lib \
37 ${placeholder "out"}/share/doc/4th \
38 ${placeholder "man"}/share/man
42 "BINARIES=${placeholder "out"}/bin"
43 "LIBRARIES=${placeholder "out"}/lib"
44 "DOCDIR=${placeholder "out"}/share/doc"
45 "MANDIR=${placeholder "man"}/share/man"
49 homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
50 description = "Portable Forth compiler";
51 license = lib.licenses.lgpl3Plus;
53 maintainers = with lib.maintainers; [ AndersonTorres ];
54 platforms = lib.platforms.unix;
57 # TODO: set Makefile according to platform