6 stdenv.mkDerivation (finalAttrs: {
11 url = "https://sourceforge.net/projects/forth-4th/files/4th-${finalAttrs.version}/4th-${finalAttrs.version}-unix.tar.gz";
12 hash = "sha256-+W6nTNsqrf3Dvr+NbSz3uJdrXVbBI3OHR5v/rs7en+M=";
15 outputs = [ "out" "man" ];
18 # Fix install manual; report this patch to upstream
19 ./001-install-manual-fixup.diff
31 install -d ${placeholder "out"}/bin \
32 ${placeholder "out"}/lib \
33 ${placeholder "out"}/share/doc/4th \
34 ${placeholder "man"}/share/man
38 "BINARIES=${placeholder "out"}/bin"
39 "LIBRARIES=${placeholder "out"}/lib"
40 "DOCDIR=${placeholder "out"}/share/doc"
41 "MANDIR=${placeholder "man"}/share/man"
45 homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
46 description = "Portable Forth compiler";
47 license = lib.licenses.lgpl3Plus;
49 maintainers = with lib.maintainers; [ AndersonTorres ];
50 platforms = lib.platforms.unix;
53 # TODO: set Makefile according to platform