1 { runCommand, fetchurl, appimage-run, glibcLocales, file, xdg-utils }:
3 # any AppImage usable on cli, really
4 sample-appImage = fetchurl {
5 url = "https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage";
6 sha256 = "04ws94q71bwskmhizhwmaf41ma4wabvfgjgkagr8wf3vakgv866r";
9 url = "https://github.com/NixOS/nixpkgs/files/10099048/owdtest.AppImage.gz";
10 sha256 = "sha256-EEp9dxz/+l5XkNaVBFgv5v64sizQILnljRAzwXv/yV8=";
13 runCommand "appimage-run-tests" {
14 buildInputs = [ appimage-run glibcLocales file xdg-utils ];
15 meta.platforms = [ "x86_64-linux" ];
18 export HOME=$(mktemp -d)
21 # regression test for #101137, must come first
22 LANG=fr_FR appimage-run ${sample-appImage} --list ${sample-appImage}
24 # regression test for #108426
25 cp ${sample-appImage} foo.appImage
26 LANG=fr_FR appimage-run ${sample-appImage} --list foo.appImage
27 cp ${owdtest} owdtest.AppImage.gz
28 gunzip owdtest.AppImage.gz
29 appimage-run owdtest.AppImage
31 # Verify desktop entry
32 XDG_DATA_DIRS="${appimage-run}/share"
33 [[ "$(xdg-mime query default application/vnd.appimage)" == '${appimage-run.name}.desktop' ]]