Files
hearth/package/merge-archive/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

26 lines
648 B
Nix

{ dash, hectic, git, gnutar, gzip, bzip2, xz, unzip, coreutils, file }:
let
shell = "${dash}/bin/dash";
in
hectic.writeShellApplication {
inherit shell;
bashOptions = [
"errexit"
"nounset"
];
excludeShellChecks = [ "SC1091" "SC2209" ];
name = "merge-archive";
runtimeInputs = [ git gnutar gzip bzip2 xz unzip coreutils file ];
text = ''
. ${hectic.helpers.posix-shell.log}
. ${hectic.helpers.posix-shell.pager_or_cat}
${builtins.readFile ./merge-archive.sh}
'';
meta = {
description = "Merge an archive into a git repository with --allow-unrelated-histories";
mainProgram = "merge-archive";
};
}