mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-15 16:16:28 +02:00
review fixes
This commit is contained in:
parent
f35d3f910f
commit
b94e99ac09
3 changed files with 2 additions and 4 deletions
29
runtimes/sqlite.nix
Normal file
29
runtimes/sqlite.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{pkgs, piston, ...}:
|
||||
let
|
||||
pkg = pkgs.sqlite;
|
||||
in piston.mkRuntime {
|
||||
language = "sqlite";
|
||||
version = pkg.version;
|
||||
|
||||
aliases = [
|
||||
"sql"
|
||||
];
|
||||
|
||||
run = ''
|
||||
${pkg}/bin/sqlite3 < "$1"
|
||||
'';
|
||||
|
||||
tests = [
|
||||
(piston.mkTest {
|
||||
files = {
|
||||
"test.sql" = ''
|
||||
SELECT 'OK';
|
||||
'';
|
||||
};
|
||||
args = [];
|
||||
stdin = "";
|
||||
packages = [];
|
||||
main = "test.sql";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue