Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 16.09 35 lines 988 B view raw
1{ stdenv, pixie, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 name = "dust-0-91"; 5 src = fetchFromGitHub { 6 owner = "pixie-lang"; 7 repo = "dust"; 8 rev = "efe469661e749a71e86858fd006f61464810575a"; 9 sha256 = "09n57b6haxwask9m8vimv42ikczf7lgfc7m9izjrcqgs0padvfzc"; 10 }; 11 buildInputs = [ pixie ]; 12 patches = [ ./make-paths-configurable.patch ]; 13 configurePhase = '' 14 pixiePath="${pixie}/bin/pixie-vm" \ 15 basePath="$out/share/dust" \ 16 substituteAll dust.in dust 17 chmod +x dust 18 ''; 19# FIXME: AOT for dust 20# buildPhase = '' 21# find . -name "*.pxi" -exec pixie-vm -c {} \; 22# ''; 23 installPhase = '' 24 mkdir -p $out/bin $out/share/dust 25 cp -a src/ run.pxi $out/share/dust 26 mv dust $out/bin/dust 27 ''; 28 29 meta = { 30 description = "Provides tooling around pixie, e.g. a nicer repl, running tests and fetching dependencies"; 31 homepage = src.meta.homepage; 32 license = stdenv.lib.licenses.lgpl3; 33 platforms = stdenv.lib.platforms.linux; 34 }; 35}