depot/third_party/nixpkgs/pkgs/development/interpreters/spidermonkey/test.nix

10 lines
229 B
Nix

{ runCommand, spidermonkey }:
runCommand "spidermonkey-test-run" {
nativeBuildInputs = [
spidermonkey
];
} ''
diff -U3 --color=auto <(js <(echo "console.log('Hello, world\!')")) <(echo 'Hello, world!')
touch $out
''