Merge pull request #177308 from risicle/ris-native-source-provenance-appimage

appimageTools.wrapAppImage: default produced derivations to `sourceProvenance` `binaryNativeCode`
This commit is contained in:
Robert Scott 2022-06-20 20:02:26 +01:00 committed by GitHub
commit 0886438a2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,13 @@ rec {
extractType2 = extract;
wrapType1 = wrapType2;
wrapAppImage = args@{ name ? "${args.pname}-${args.version}", src, extraPkgs, ... }: buildFHSUserEnv
wrapAppImage = args@{
name ? "${args.pname}-${args.version}",
src,
extraPkgs,
meta ? {},
...
}: buildFHSUserEnv
(defaultFhsEnvArgs // {
inherit name;
@ -45,6 +51,10 @@ rec {
++ defaultFhsEnvArgs.targetPkgs pkgs ++ extraPkgs pkgs;
runScript = "appimage-exec.sh -w ${src} --";
meta = {
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
} // meta;
} // (removeAttrs args ([ "pname" "version" ] ++ (builtins.attrNames (builtins.functionArgs wrapAppImage)))));
wrapType2 = args@{ name ? "${args.pname}-${args.version}", src, extraPkgs ? pkgs: [ ], ... }: wrapAppImage