mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 12:36:28 +02:00
octave --> nix
This commit is contained in:
parent
66af61c2cb
commit
e7c5b557f9
7 changed files with 31 additions and 36 deletions
|
@ -28,4 +28,5 @@ args: {
|
|||
"ponylang" = import ./ponylang.nix args;
|
||||
"php" = import ./php.nix args;
|
||||
"perl" = import ./perl.nix args;
|
||||
"octave" = import ./octave.nix args;
|
||||
}
|
||||
|
|
30
runtimes/octave.nix
Normal file
30
runtimes/octave.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{pkgs, piston, ...}:
|
||||
let
|
||||
pkg = pkgs.octave;
|
||||
in piston.mkRuntime {
|
||||
language = "octave";
|
||||
version = pkg.version;
|
||||
|
||||
aliases = [
|
||||
"matlab"
|
||||
"m"
|
||||
];
|
||||
|
||||
run = ''
|
||||
${pkg}/bin/octave --no-gui --no-window-system --no-history --no-init-file --no-site-file --norc --quiet "$@"
|
||||
'';
|
||||
|
||||
tests = [
|
||||
(piston.mkTest {
|
||||
files = {
|
||||
"test.m" = ''
|
||||
disp("OK");
|
||||
'';
|
||||
};
|
||||
args = [];
|
||||
stdin = "";
|
||||
packages = [];
|
||||
main = "test.m";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue