mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
54 lines
1.3 KiB
Nix
54 lines
1.3 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 = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|
|
# TODO: set Makefile according to platform
|