summary refs log tree commit diff
path: root/pkgs/development/compilers/gforth/boot-forth.nix
blob: 74a267687b8f23ecfb85fc5fb4e501467f2134b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchurl, m4 }:

let
  version = "0.7.3";
in
stdenv.mkDerivation {
  pname = "gforth-boot";
  inherit version;
  src = fetchurl {
    url = "https://ftp.gnu.org/gnu/gforth/gforth-${version}.tar.gz";
    sha256 = "1c1bahc9ypmca8rv2dijiqbangm1d9av286904yw48ph7ciz4qig";
  };

  buildInputs = [ m4 ];

  configureFlags = lib.optionals stdenv.isDarwin [ "--build=x86_64-apple-darwin" ];

  meta = {
    description = "The Forth implementation of the GNU project (outdated version used to bootstrap)";
    homepage = "https://www.gnu.org/software/gforth/";
    license = lib.licenses.gpl3;
    platforms = lib.platforms.all;
  };
}