appimageTools: use functionArgs as suggested, use dynamicLinker attr
This commit is contained in:
parent
25fb5d553c
commit
843d5b05ef
|
@ -23,7 +23,7 @@ rec {
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
install $src ./appimage
|
install $src ./appimage
|
||||||
patchelf \
|
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 \
|
--replace-needed libz.so.1 ${zlib}/lib/libz.so.1 \
|
||||||
./appimage
|
./appimage
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ rec {
|
||||||
cd $APPDIR
|
cd $APPDIR
|
||||||
exec ./AppRun "$@"
|
exec ./AppRun "$@"
|
||||||
'';
|
'';
|
||||||
} // (builtins.removeAttrs args [ "name" "src" "extraPkgs" ]));
|
} // (removeAttrs args (builtins.attrNames (builtins.functionArgs wrapAppImage))));
|
||||||
|
|
||||||
wrapType1 = args@{ name, src, extraPkgs ? pkgs: [], ... }: wrapAppImage (args // {
|
wrapType1 = args@{ name, src, extraPkgs ? pkgs: [], ... }: wrapAppImage (args // {
|
||||||
inherit name extraPkgs;
|
inherit name extraPkgs;
|
||||||
|
|
Loading…
Reference in New Issue