2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
2019-04-24 04:42:36 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-04-24 04:42:36 +02:00
|
|
|
version = "28";
|
|
|
|
pname = "pforth";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "philburk";
|
|
|
|
repo = "pforth";
|
|
|
|
rev = "9190005e32c6151b76ac707b30eeb4d5d9dd1d36";
|
|
|
|
sha256 = "0k3pmcgybsnwrxy75piyb2420r8d4ij190606js32j99062glr3x";
|
|
|
|
};
|
|
|
|
|
2020-09-15 23:55:01 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "gnumake-4.3-fix.patch";
|
|
|
|
url = "https://github.com/philburk/pforth/commit/457cb99f57292bc855e53abcdcb7b12d6681e847.patch";
|
|
|
|
sha256 = "0x1bwx3pqb09ddjhmdli47lnk1ys4ny42819g17kfn8nkjs5hbx7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-04-24 04:42:36 +02:00
|
|
|
makeFlags = [ "SRCDIR=." ];
|
|
|
|
makefile = "build/unix/Makefile";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 pforth_standalone $out/bin/pforth
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Portable ANSI style Forth written in ANSI C";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.softsynth.com/pforth/";
|
2021-01-22 12:25:31 +01:00
|
|
|
license = lib.licenses.publicDomain;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ yrashk ];
|
2019-04-24 04:42:36 +02:00
|
|
|
};
|
|
|
|
}
|