Compare commits

...

3 Commits

Author SHA1 Message Date
Herwig Hochleitner
e680e4d440 ueforth: put derivation inputs on a single line
Co-authored-by: Ben Siraphob <bensiraphob@gmail.com>
2021-11-28 21:19:16 +01:00
Herwig Hochleitner
3ebae8161d ueforth: implement PR feedback 2021-11-26 02:56:28 +01:00
Herwig Hochleitner
bd0ee00e20 ueforth: init 2021-11-16 13:07:09 +01:00
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{ lib, stdenv, fetchFromGitHub, nodejs, python }:
stdenv.mkDerivation rec {
pname = "ueforth";
version = "unstable-2021-09-20";
src = fetchFromGitHub {
owner = "flagxor";
repo = "eforth";
rev = "830e6b40d7d3a4c67302c65359c4989e2ff5a5de";
sha256 = "0xc5s3vyq3h5xjkvdxrq3fklg6pq1xsq7gy1p7aih937x4vcrlgh";
};
postUnpack = ''
sourceRoot=$sourceRoot/ueforth
'';
postPatch = ''
sed -i 's_/usr/bin/env nodejs_${nodejs}/bin/node_' **/*.js
sed -i 's_/usr/bin/env python_${python}/bin/python_' **/*.py
'';
buildPhase = ''
make "REVISION=${src.rev}" out/posix/ueforth
'';
installPhase = ''
mkdir -p $out/bin $out/share/ueforth
cp out/posix/ueforth $out/bin
cp -R common posix $out/share/ueforth/
'';
meta = {
description = "µEforth, an EForth inspired Forth bootstraped from a minimalist C kernel";
homepage = "https://github.com/flagxor/eforth/tree/main/ueforth";
license = lib.licenses.asl20;
platforms = lib.platforms.all;
};
}

View File

@@ -15371,6 +15371,8 @@ with pkgs;
uefi-firmware-parser = callPackage ../development/tools/analysis/uefi-firmware-parser { };
ueforth = callPackage ../development/interpreters/ueforth { };
uhd3_5 = callPackage ../applications/radio/uhd/3.5.nix { };
uhd = callPackage ../applications/radio/uhd {
boost = boost17x;