at 22.05-pre 976 B view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch }: 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 patches = [ 14 (fetchpatch { 15 name = "gnumake-4.3-fix.patch"; 16 url = "https://github.com/philburk/pforth/commit/457cb99f57292bc855e53abcdcb7b12d6681e847.patch"; 17 sha256 = "0x1bwx3pqb09ddjhmdli47lnk1ys4ny42819g17kfn8nkjs5hbx7"; 18 }) 19 ]; 20 21 makeFlags = [ "SRCDIR=." ]; 22 makefile = "build/unix/Makefile"; 23 24 installPhase = '' 25 install -Dm755 pforth_standalone $out/bin/pforth 26 ''; 27 28 29 meta = { 30 description = "Portable ANSI style Forth written in ANSI C"; 31 homepage = "http://www.softsynth.com/pforth/"; 32 license = lib.licenses.publicDomain; 33 platforms = lib.platforms.unix; 34 maintainers = with lib.maintainers; [ yrashk ]; 35 }; 36}