Files
2026-06-09 23:57:51 +00:00

24 lines
521 B
Nix

{ dash, hectic, sqlite, postgresql_17, gawk, coreutils, self }:
let
shell = "${dash}/bin/dash";
bashOptions = [
"errexit"
"nounset"
];
applyBundle = self.lib.hectic.applyBundleScript;
migrator = hectic.writeShellApplication {
inherit shell bashOptions;
name = "migrator";
runtimeInputs = [ sqlite postgresql_17 gawk coreutils ];
text = ''
${builtins.readFile hectic.helpers.posix-shell.log}
${applyBundle}
${builtins.readFile ./migrator.sh}
'';
};
in
migrator