1{ stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation {
4 version = "28";
5 pname = "pforth";
6 src = fetchFromGitHub {
7 owner = "philburk";
8 repo = "pforth";
9 rev = "9190005e32c6151b76ac707b30eeb4d5d9dd1d36";
10 sha256 = "0k3pmcgybsnwrxy75piyb2420r8d4ij190606js32j99062glr3x";
11 };
12
13 makeFlags = [ "SRCDIR=." ];
14 makefile = "build/unix/Makefile";
15
16 installPhase = ''
17 install -Dm755 pforth_standalone $out/bin/pforth
18 '';
19
20
21 meta = {
22 description = "Portable ANSI style Forth written in ANSI C";
23 homepage = http://www.softsynth.com/pforth/;
24 license = stdenv.lib.licenses.publicDomain;
25 platforms = stdenv.lib.platforms.unix;
26 maintainers = with stdenv.lib.maintainers; [ yrashk ];
27 };
28}