piston/runtimes/julia.nix

29 lines
538 B
Nix
Raw Normal View History

2022-02-11 17:57:53 +01:00
{pkgs, piston, ...}:
let
pkg = pkgs.julia-bin;
in piston.mkRuntime {
language = "julia";
version = pkg.version;
aliases = [
"jl"
];
run = ''
${pkg}/bin/julia --startup-file=no --history-file=no "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.jl" = ''
println("OK")
'';
};
args = [];
stdin = "";
packages = [];
main = "test.jl";
})
];
}