Files
hearth/package/migrator/default.nix
T
yukkop 6f80f672f2
runner nix smoke / nix label and flake smoke (push) Failing after 7s
rework: fix all vulnerabilities
2026-09-08 10:36:38 +00:00

25 lines
555 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;
excludeShellChecks = [ "SC1091" ];
name = "migrator";
runtimeInputs = [ sqlite postgresql_17 gawk coreutils ];
text = ''
. ${hectic.helpers.posix-shell.log}/bin/log.sh
${applyBundle}
${builtins.readFile ./migrator.sh}
'';
};
in
migrator