blob: d184ec3748f7f3198380b9a712ab11e427cf3ca6 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib, stdenv, fetchFromGitHub, callPackage
, autoreconfHook, texinfo, libffi
}:
let
swig = callPackage ./swig.nix { };
bootForth = callPackage ./boot-forth.nix { };
in stdenv.mkDerivation rec {
name = "gforth-${version}";
version = "0.7.9_20220127";
src = fetchFromGitHub {
owner = "forthy42";
repo = "gforth";
rev = version;
sha256 = "sha256-3+ObHhsPvW44UFiN0GWOhwo7aiqhjwxNY8hw2Wv4MK0=";
};
nativeBuildInputs = [
autoreconfHook texinfo bootForth swig
];
buildInputs = [
libffi
];
passthru = { inherit bootForth; };
configureFlags = lib.optional stdenv.isDarwin [ "--build=x86_64-apple-darwin" ];
postInstall = ''
mkdir -p $out/share/emacs/site-lisp
cp gforth.el $out/share/emacs/site-lisp/
'';
meta = {
description = "The Forth implementation of the GNU project";
homepage = "https://github.com/forthy42/gforth";
license = lib.licenses.gpl3;
platforms = lib.platforms.all;
};
}
|