_4th: refactor
- Migrate to by-name - Split outputs - finalAttrs
This commit is contained in:
@@ -1,14 +1,19 @@
|
|||||||
{ lib, stdenv, fetchurl }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "4th";
|
pname = "4th";
|
||||||
version = "3.64.1";
|
version = "3.64.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://sourceforge.net/projects/forth-4th/files/${pname}-${version}/${pname}-${version}-unix.tar.gz";
|
url = "https://sourceforge.net/projects/forth-4th/files/4th-${finalAttrs.version}/4th-${finalAttrs.version}-unix.tar.gz";
|
||||||
hash = "sha256-+W6nTNsqrf3Dvr+NbSz3uJdrXVbBI3OHR5v/rs7en+M=";
|
hash = "sha256-+W6nTNsqrf3Dvr+NbSz3uJdrXVbBI3OHR5v/rs7en+M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Fix install manual; report this patch to upstream
|
# Fix install manual; report this patch to upstream
|
||||||
./001-install-manual-fixup.diff
|
./001-install-manual-fixup.diff
|
||||||
@@ -23,24 +28,25 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
install -d ${placeholder "out"}/bin \
|
install -d ${placeholder "out"}/bin \
|
||||||
${placeholder "out"}/lib \
|
${placeholder "out"}/lib \
|
||||||
${placeholder "out"}/share/doc/${pname} \
|
${placeholder "out"}/share/doc/4th \
|
||||||
${placeholder "out"}/share/man
|
${placeholder "man"}/share/man
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"BINARIES=${placeholder "out"}/bin"
|
"BINARIES=${placeholder "out"}/bin"
|
||||||
"LIBRARIES=${placeholder "out"}/lib"
|
"LIBRARIES=${placeholder "out"}/lib"
|
||||||
"DOCDIR=${placeholder "out"}/share/doc"
|
"DOCDIR=${placeholder "out"}/share/doc"
|
||||||
"MANDIR=${placeholder "out"}/share/man"
|
"MANDIR=${placeholder "man"}/share/man"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
|
homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
|
||||||
description = "A portable Forth compiler";
|
description = "A portable Forth compiler";
|
||||||
license = licenses.lgpl3Plus;
|
license = lib.licenses.lgpl3Plus;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
mainProgram = "4th";
|
||||||
platforms = platforms.unix;
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
# TODO: set Makefile according to platform
|
# TODO: set Makefile according to platform
|
||||||
@@ -15443,8 +15443,6 @@ with pkgs;
|
|||||||
|
|
||||||
### DEVELOPMENT / COMPILERS
|
### DEVELOPMENT / COMPILERS
|
||||||
|
|
||||||
_4th = callPackage ../development/compilers/4th { };
|
|
||||||
|
|
||||||
temurin-bin-20 = javaPackages.compiler.temurin-bin.jdk-20;
|
temurin-bin-20 = javaPackages.compiler.temurin-bin.jdk-20;
|
||||||
temurin-jre-bin-20 = javaPackages.compiler.temurin-bin.jre-20;
|
temurin-jre-bin-20 = javaPackages.compiler.temurin-bin.jre-20;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user