2021-01-04 13:00:00 +01:00
|
|
|
{ appimageTools, buildFHSUserEnv, extraPkgs ? pkgs: [], appimage-run-tests ? null }:
|
2018-06-09 19:10:16 +02:00
|
|
|
|
2019-01-27 14:02:50 +01:00
|
|
|
let
|
2020-03-05 18:53:11 +01:00
|
|
|
fhsArgs = appimageTools.defaultFhsEnvArgs;
|
|
|
|
in buildFHSUserEnv (fhsArgs // {
|
2020-03-05 23:57:36 +01:00
|
|
|
name = "appimage-run";
|
2018-06-09 19:10:16 +02:00
|
|
|
|
2020-03-05 23:57:36 +01:00
|
|
|
targetPkgs = pkgs: [ appimageTools.appimage-exec ]
|
|
|
|
++ fhsArgs.targetPkgs pkgs ++ extraPkgs pkgs;
|
2020-03-08 20:34:23 +01:00
|
|
|
runScript = "appimage-exec.sh";
|
2021-01-04 13:00:00 +01:00
|
|
|
|
|
|
|
passthru.tests.appimage-run = appimage-run-tests;
|
2019-01-27 14:02:50 +01:00
|
|
|
})
|