mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-09-11 15:05:32 +03:00
try to fix appimage generation
This commit is contained in:
parent
74c98a53ea
commit
aa4d9f9880
@ -5,7 +5,7 @@ stdenv.mkDerivation {
|
|||||||
name = "appimage";
|
name = "appimage";
|
||||||
buildInputs = [ appimagetool ];
|
buildInputs = [ appimagetool ];
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
appimagetool ${dir}/*.AppDir
|
ARCH=x86_64 appimagetool ${dir}/*.AppDir
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp *.AppImage $out
|
cp *.AppImage $out
|
||||||
'';
|
'';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fuse, zlib, squashfsTools }:
|
{ stdenv, fetchurl, fuse, zlib, squashfsTools, glib }:
|
||||||
|
|
||||||
# This is from some binaries.
|
# This is from some binaries.
|
||||||
|
|
||||||
@ -31,7 +31,15 @@ stdenv.mkDerivation rec {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -r usr/* $out
|
cp -r usr/* $out
|
||||||
|
|
||||||
|
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||||
|
--set-rpath ${stdenv.glibc.out}/lib:${fuse}/lib:${zlib}/lib:${glib}/lib \
|
||||||
|
$out/bin/appimagetool
|
||||||
|
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||||
|
--set-rpath ${zlib}/lib \
|
||||||
|
$out/bin/mksquashfs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
dontStrip = true;
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user