Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "4th";
|
|
version = "3.64.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://sourceforge.net/projects/forth-4th/files/4th-${finalAttrs.version}/4th-${finalAttrs.version}-unix.tar.gz";
|
|
hash = "sha256-+W6nTNsqrf3Dvr+NbSz3uJdrXVbBI3OHR5v/rs7en+M=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
patches = [
|
|
# Fix install manual; report this patch to upstream
|
|
./001-install-manual-fixup.diff
|
|
];
|
|
|
|
dontConfigure = true;
|
|
|
|
makeFlags = [
|
|
"-C sources"
|
|
"CC:=$(CC)"
|
|
"AR:=$(AR)"
|
|
];
|
|
|
|
preInstall = ''
|
|
install -d ${placeholder "out"}/bin \
|
|
${placeholder "out"}/lib \
|
|
${placeholder "out"}/share/doc/4th \
|
|
${placeholder "man"}/share/man
|
|
'';
|
|
|
|
installFlags = [
|
|
"BINARIES=${placeholder "out"}/bin"
|
|
"LIBRARIES=${placeholder "out"}/lib"
|
|
"DOCDIR=${placeholder "out"}/share/doc"
|
|
"MANDIR=${placeholder "man"}/share/man"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
|
|
description = "Portable Forth compiler";
|
|
license = lib.licenses.lgpl3Plus;
|
|
mainProgram = "4th";
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|
|
# TODO: set Makefile according to platform
|