appimageTools.extract: add postExtract option (#261190)
This commit is contained in:
parent
2bbf67d3c7
commit
4a2788ea2a
1 changed files with 2 additions and 1 deletions
|
@ -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 ];
|
buildInputs = [ appimage-exec ];
|
||||||
} ''
|
} ''
|
||||||
appimage-exec.sh -x $out ${src}
|
appimage-exec.sh -x $out ${src}
|
||||||
|
${postExtract}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# for compatibility, deprecated
|
# for compatibility, deprecated
|
||||||
|
|
Loading…
Reference in a new issue