nixpkgs/pkgs/development/compilers/4th/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2020-11-08 05:48:09 +01:00
stdenv.mkDerivation rec {
pname = "4th";
2022-03-15 21:01:21 +01:00
version = "3.64.0";
2020-11-08 05:48:09 +01:00
src = fetchurl {
url = "https://sourceforge.net/projects/forth-4th/files/${pname}-${version}/${pname}-${version}-unix.tar.gz";
2022-03-15 21:01:21 +01:00
hash = "sha256-wJBekjFsFRIkhY/P/yHBQ8he+k+fGyrePGTP2Yjgpqg=";
2020-11-08 05:48:09 +01:00
};
2022-03-15 21:01:21 +01:00
patches = [
# Fix install manual; report this patch to upstream
./001-install-manual-fixup.diff
];
2020-11-08 05:48:09 +01:00
dontConfigure = true;
makeFlags = [
"-C sources"
2021-03-03 12:38:43 +01:00
"CC=${stdenv.cc.targetPrefix}cc"
2020-11-08 05:48:09 +01: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"
];
meta = with lib; {
2020-11-08 05:48:09 +01:00
homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
2022-03-15 21:01:21 +01:00
description = "A portable Forth compiler";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
2020-11-08 05:48:09 +01:00
};
}
2022-03-15 21:01:21 +01:00
# TODO: set Makefile according to platform