appimageTools.extract: add postExtract option (#261190)

This commit is contained in:
Gabriel Volpe 2023-10-19 10:23:57 +02:00 committed by GitHub
parent 2bbf67d3c7
commit 4a2788ea2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,10 +26,11 @@ rec {
];
};
extract = args@{ name ? "${args.pname}-${args.version}", src, ... }: pkgs.runCommand "${name}-extracted" {
extract = args@{ name ? "${args.pname}-${args.version}", postExtract ? "", src, ... }: pkgs.runCommand "${name}-extracted" {
buildInputs = [ appimage-exec ];
} ''
appimage-exec.sh -x $out ${src}
${postExtract}
'';
# for compatibility, deprecated