mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
add piston nix pkg for julia
This commit is contained in:
parent
93fa1a9755
commit
25ae43df69
12 changed files with 30 additions and 70 deletions
|
@ -38,4 +38,5 @@ args: {
|
|||
"lolcode" = import ./lolcode.nix args;
|
||||
"sbcl-lisp" = import ./sbcl-lisp.nix args;
|
||||
"jvm-kotlin" = import ./jvm-kotlin.nix args;
|
||||
"julia" = import ./julia.nix args;
|
||||
}
|
||||
|
|
29
runtimes/julia.nix
Normal file
29
runtimes/julia.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{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";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue