feat: +package merge-archive

This commit is contained in:
2026-05-22 07:45:47 +00:00
parent 19b95e707d
commit 56881b766a
3 changed files with 319 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{ dash, hectic, git, gnutar, gzip, bzip2, xz, unzip, coreutils, file }:
let
shell = "${dash}/bin/dash";
in
hectic.writeShellApplication {
inherit shell;
bashOptions = [
"errexit"
"nounset"
];
excludeShellChecks = [ "SC2209" ];
name = "merge-archive";
runtimeInputs = [ git gnutar gzip bzip2 xz unzip coreutils file ];
text = ''
${builtins.readFile hectic.helpers.posix-shell.log}
${builtins.readFile 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";
};
}