appimageTools: use functionArgs as suggested, use dynamicLinker attr

This commit is contained in:
Will Dietz 2019-02-23 18:08:38 -06:00
parent 25fb5d553c
commit 843d5b05ef

View File

@ -23,7 +23,7 @@ rec {
buildCommand = ''
install $src ./appimage
patchelf \
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
--set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
--replace-needed libz.so.1 ${zlib}/lib/libz.so.1 \
./appimage
@ -46,7 +46,7 @@ rec {
cd $APPDIR
exec ./AppRun "$@"
'';
} // (builtins.removeAttrs args [ "name" "src" "extraPkgs" ]));
} // (removeAttrs args (builtins.attrNames (builtins.functionArgs wrapAppImage))));
wrapType1 = args@{ name, src, extraPkgs ? pkgs: [], ... }: wrapAppImage (args // {
inherit name extraPkgs;