1 { lib, stdenv, fetchFromGitHub, cmake, clang, python, v8, coreutils }:
4 sexpr_wasm_prototype = stdenv.mkDerivation {
5 name = "sexpr_wasm_prototype";
6 src = fetchFromGitHub {
8 repo = "sexpr-wasm-prototype";
9 rev = "1347a367c34876bfe92562f244a8c8b770372479";
10 sha256 = "1v1mph5fp1rffhvh8bbx937gpjqjrdgm7yhffdxzdn4pih9d0grn";
14 # set this to nonempty string to disable default cmake configure
17 nativeBuildInputs = [ cmake ];
18 buildInputs = [ clang python ];
20 buildPhase = "make clang-debug-no-tests";
22 hardeningDisable = [ "format" ];
26 cp out/clang/Debug/no-tests/sexpr-wasm $out/bin
35 src = fetchFromGitHub {
38 rev = "650188eecaaf4b64f12b341986b4e89e5fdb3bbe";
39 sha256 = "1f5mdl0l2448lx7h36b4bdr541a4q1wapn1kdwrd4z7s94n7a5gq";
43 sed -i -e "s|sudo ||g" Makefile
48 export MKTEMPDIR=${coreutils}/bin
49 export D8DIR=${v8}/bin
50 export SWDIR=${sexpr_wasm_prototype}/bin
55 description = "wasm runs WebAssembly from the command line";
56 maintainers = with maintainers; [ proglodyte ];
57 platforms = platforms.linux;
58 license = licenses.asl20;