Merge pull request #146234 from NixOS/update-gforth-forthy42

gforth: 0.7.3 -> 0.7.9_20220127

authored by

Herwig Hochleitner and committed by
GitHub
7a31aa05 b9029d83

+63 -10
+24
pkgs/development/compilers/gforth/boot-forth.nix
···
··· 1 + { lib, stdenv, fetchurl, m4 }: 2 + 3 + let 4 + version = "0.7.3"; 5 + in 6 + stdenv.mkDerivation { 7 + pname = "gforth-boot"; 8 + inherit version; 9 + src = fetchurl { 10 + url = "https://ftp.gnu.org/gnu/gforth/gforth-${version}.tar.gz"; 11 + sha256 = "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig"; 12 + }; 13 + 14 + buildInputs = [ m4 ]; 15 + 16 + configureFlags = lib.optional stdenv.isDarwin [ "--build=x86_64-apple-darwin" ]; 17 + 18 + meta = { 19 + description = "The Forth implementation of the GNU project (outdated version used to bootstrap)"; 20 + homepage = "https://www.gnu.org/software/gforth/"; 21 + license = lib.licenses.gpl3; 22 + platforms = lib.platforms.all; 23 + }; 24 + }
+23 -10
pkgs/development/compilers/gforth/default.nix
··· 1 - { lib, stdenv, fetchurl, m4 }: 2 3 let 4 - version = "0.7.3"; 5 - in 6 - stdenv.mkDerivation { 7 pname = "gforth"; 8 - inherit version; 9 - src = fetchurl { 10 - url = "https://ftp.gnu.org/gnu/gforth/gforth-${version}.tar.gz"; 11 - sha256 = "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig"; 12 }; 13 14 - buildInputs = [ m4 ]; 15 16 configureFlags = lib.optional stdenv.isDarwin [ "--build=x86_64-apple-darwin" ]; 17 ··· 22 23 meta = { 24 description = "The Forth implementation of the GNU project"; 25 - homepage = "https://www.gnu.org/software/gforth/"; 26 license = lib.licenses.gpl3; 27 platforms = lib.platforms.all; 28 };
··· 1 + { lib, stdenv, fetchFromGitHub, callPackage 2 + , autoreconfHook, texinfo, libffi 3 + }: 4 5 let 6 + swig = callPackage ./swig.nix { }; 7 + bootForth = callPackage ./boot-forth.nix { }; 8 + in stdenv.mkDerivation rec { 9 + 10 pname = "gforth"; 11 + version = "0.7.9_20220127"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "forthy42"; 15 + repo = "gforth"; 16 + rev = version; 17 + sha256 = "sha256-3+ObHhsPvW44UFiN0GWOhwo7aiqhjwxNY8hw2Wv4MK0="; 18 }; 19 20 + nativeBuildInputs = [ 21 + autoreconfHook texinfo bootForth swig 22 + ]; 23 + buildInputs = [ 24 + libffi 25 + ]; 26 + 27 + passthru = { inherit bootForth; }; 28 29 configureFlags = lib.optional stdenv.isDarwin [ "--build=x86_64-apple-darwin" ]; 30 ··· 35 36 meta = { 37 description = "The Forth implementation of the GNU project"; 38 + homepage = "https://github.com/forthy42/gforth"; 39 license = lib.licenses.gpl3; 40 platforms = lib.platforms.all; 41 };
+16
pkgs/development/compilers/gforth/swig.nix
···
··· 1 + { swig3, fetchFromGitHub }: 2 + 3 + ## for updating to swig4, see 4 + ## https://github.com/GeraldWodni/swig/pull/6 5 + swig3.overrideDerivation (old: { 6 + version = "3.0.9-forth"; 7 + src = fetchFromGitHub { 8 + owner = "GeraldWodni"; 9 + repo = "swig"; 10 + rev = "a45b807e5f9d8ca1a43649c8265d2741a393862a"; 11 + sha256 = "sha256-6nOOPFGFNaQInEkul0ZAh+ks9n3wqCQ6/tbduvG/To0="; 12 + }; 13 + configureFlags = old.configureFlags ++ [ 14 + "--enable-forth" 15 + ]; 16 + })