2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "4th";
|
|
|
|
version = "3.62.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://sourceforge.net/projects/forth-4th/files/${pname}-${version}/${pname}-${version}-unix.tar.gz";
|
|
|
|
sha256 = "sha256-+CL33Yz7CxdEpi1lPG7+kzV4rheJ7GCgiFCaOLyktPw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"-C sources"
|
2021-03-09 03:18:52 +00:00
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
2020-11-12 09:05:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
install -d ${placeholder "out"}/bin \
|
|
|
|
${placeholder "out"}/lib \
|
|
|
|
${placeholder "out"}/share/doc/${pname} \
|
|
|
|
${placeholder "out"}/share/man
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"BINARIES=${placeholder "out"}/bin"
|
|
|
|
"LIBRARIES=${placeholder "out"}/lib"
|
|
|
|
"DOCDIR=${placeholder "out"}/share/doc"
|
|
|
|
"MANDIR=${placeholder "out"}/share/man"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-12 09:05:59 +00:00
|
|
|
description = "A portable Forth compiler";
|
|
|
|
homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
|
|
|
|
license = licenses.lgpl3;
|
2021-03-09 03:18:52 +00:00
|
|
|
platforms = platforms.all;
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
}
|