nixpkgs/pkgs/development/interpreters/pixie/dust.nix

36 lines
983 B
Nix
Raw Normal View History

{ stdenv, pixie, fetchFromGitHub }:
2016-02-28 15:50:59 +00:00
stdenv.mkDerivation rec {
2016-02-28 15:50:59 +00:00
name = "dust-0-91";
src = fetchFromGitHub {
owner = "pixie-lang";
repo = "dust";
2016-02-28 15:50:59 +00:00
rev = "efe469661e749a71e86858fd006f61464810575a";
sha256 = "09n57b6haxwask9m8vimv42ikczf7lgfc7m9izjrcqgs0padvfzc";
2016-02-28 15:50:59 +00:00
};
buildInputs = [ pixie ];
patches = [ ./make-paths-configurable.patch ];
configurePhase = ''
pixiePath="${pixie}/bin/pxi" \
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;
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux;
2016-05-18 16:29:46 +01:00
};
2016-02-28 15:50:59 +00:00
}