2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, pixie, fetchFromGitHub }:
|
2016-02-28 15:50:59 +00:00
|
|
|
|
2016-05-18 16:29:33 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-28 15:50:59 +00:00
|
|
|
name = "dust-0-91";
|
2016-05-18 16:29:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pixie-lang";
|
|
|
|
repo = "dust";
|
2016-02-28 15:50:59 +00:00
|
|
|
rev = "efe469661e749a71e86858fd006f61464810575a";
|
2016-05-18 16:29:33 +01:00
|
|
|
sha256 = "09n57b6haxwask9m8vimv42ikczf7lgfc7m9izjrcqgs0padvfzc";
|
2016-02-28 15:50:59 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ pixie ];
|
|
|
|
patches = [ ./make-paths-configurable.patch ];
|
|
|
|
configurePhase = ''
|
2016-08-19 01:31:18 +01:00
|
|
|
pixiePath="${pixie}/bin/pixie-vm" \
|
2016-02-28 15:50:59 +00:00
|
|
|
basePath="$out/share/dust" \
|
|
|
|
substituteAll dust.in dust
|
|
|
|
chmod +x dust
|
|
|
|
'';
|
|
|
|
# FIXME: AOT for dust
|
|
|
|
# buildPhase = ''
|
|
|
|
# find . -name "*.pxi" -exec pixie-vm -c {} \;
|
|
|
|
# '';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/dust
|
|
|
|
cp -a src/ run.pxi $out/share/dust
|
|
|
|
mv dust $out/bin/dust
|
|
|
|
'';
|
2016-05-18 16:29:46 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Provides tooling around pixie, e.g. a nicer repl, running tests and fetching dependencies";
|
|
|
|
homepage = src.meta.homepage;
|
2021-01-23 13:15:07 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2016-05-18 16:29:46 +01:00
|
|
|
};
|
2016-02-28 15:50:59 +00:00
|
|
|
}
|