mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
Merge pull request #203598 from symphorien/appimage-owd
appimage-run: export OWD
This commit is contained in:
commit
c1c6998684
@ -7,6 +7,9 @@ fi
|
||||
|
||||
PATH="@path@:$PATH"
|
||||
apprun_opt=true
|
||||
OWD=$(readlink -f .)
|
||||
# can be read by appimages: https://docs.appimage.org/packaging-guide/environment-variables.html
|
||||
export OWD
|
||||
|
||||
# src : AppImage
|
||||
# dest : let's unpack() create the directory
|
||||
|
@ -5,6 +5,10 @@ let
|
||||
url = "https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage";
|
||||
sha256 = "04ws94q71bwskmhizhwmaf41ma4wabvfgjgkagr8wf3vakgv866r";
|
||||
};
|
||||
owdtest = fetchurl {
|
||||
url = "https://github.com/NixOS/nixpkgs/files/10099048/owdtest.AppImage.gz";
|
||||
sha256 = "sha256-EEp9dxz/+l5XkNaVBFgv5v64sizQILnljRAzwXv/yV8=";
|
||||
};
|
||||
in
|
||||
runCommand "appimage-run-tests" {
|
||||
buildInputs = [ appimage-run glibcLocales file ];
|
||||
@ -18,6 +22,9 @@ in
|
||||
# regression test for #108426
|
||||
cp ${sample-appImage} foo.appImage
|
||||
LANG=fr_FR appimage-run ${sample-appImage} --list foo.appImage
|
||||
cp ${owdtest} owdtest.AppImage.gz
|
||||
gunzip owdtest.AppImage.gz
|
||||
appimage-run owdtest.AppImage
|
||||
set +x
|
||||
touch $out
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user