nixpkgs/pkgs/development/compilers/gforth/default.nix

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

47 lines
1.0 KiB
Nix
Raw Normal View History

2022-02-08 01:33:52 +00:00
{ lib, stdenv, fetchFromGitHub, callPackage
, autoreconfHook, texinfo, libffi
}:
2022-02-08 01:33:52 +00:00
let
2022-02-08 01:33:52 +00:00
swig = callPackage ./swig.nix { };
bootForth = callPackage ./boot-forth.nix { };
lispDir = "${placeholder "out"}/share/emacs/site-lisp";
2022-02-08 01:33:52 +00:00
in stdenv.mkDerivation rec {
2022-02-08 02:50:20 +00:00
pname = "gforth";
2022-02-08 01:33:52 +00:00
version = "0.7.9_20220127";
src = fetchFromGitHub {
owner = "forthy42";
repo = "gforth";
rev = version;
2022-02-08 01:33:52 +00:00
sha256 = "sha256-3+ObHhsPvW44UFiN0GWOhwo7aiqhjwxNY8hw2Wv4MK0=";
2014-09-22 13:15:17 +00:00
};
nativeBuildInputs = [
2022-02-08 01:33:52 +00:00
autoreconfHook texinfo bootForth swig
];
buildInputs = [
2022-02-08 01:33:52 +00:00
libffi
];
passthru = { inherit bootForth; };
configureFlags = [
"--with-lispdir=${lispDir}"
] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
"--build=x86_64-apple-darwin"
];
2016-04-06 21:11:19 +00:00
preConfigure = ''
mkdir -p ${lispDir}
'';
meta = {
description = "The Forth implementation of the GNU project";
homepage = "https://github.com/forthy42/gforth";
license = lib.licenses.gpl3;
platforms = lib.platforms.all;
};
}