Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 36 lines 874 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4}: 5 6stdenv.mkDerivation (finalAttrs: { 7 pname = "pforth"; 8 version = "2.0.1"; 9 10 src = fetchFromGitHub { 11 owner = "philburk"; 12 repo = "pforth"; 13 rev = "v${finalAttrs.version}"; 14 hash = "sha256-vEjFeHSJl+yAtatYJEnu+r9hmOr/kZOgIbSUXR/c8WU="; 15 }; 16 17 dontConfigure = true; 18 19 preBuild = '' 20 cd platforms/unix 21 ''; 22 23 installPhase = '' 24 install -Dm755 pforth_standalone $out/bin/pforth 25 ''; 26 27 meta = { 28 homepage = "http://www.softsynth.com/pforth/"; 29 description = "Portable Portable ANS-like Forth written in ANSI 'C'"; 30 changelog = "https://github.com/philburk/pforth/blob/v${finalAttrs.version}/RELEASES.md"; 31 license = lib.licenses.bsd0; 32 maintainers = with lib.maintainers; [ AndersonTorres yrashk ]; 33 platforms = lib.platforms.unix; 34 }; 35}) 36# TODO: option for install the non-standalone executable