Files
hearth/package/migrator/default.nix
T
yukkop 728814c04d
runner nix smoke / nix label and flake smoke (push) Failing after 8s
fix: pg init
2026-09-08 20:03:57 +00:00

25 lines
544 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}
${applyBundle}
${builtins.readFile ./migrator.sh}
'';
};
in
migrator