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

36 lines
1,019 B
Nix
Raw Normal View History

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