mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
14 lines
387 B
Nix
14 lines
387 B
Nix
{ appimageTools, buildFHSUserEnv, extraPkgs ? pkgs: [], appimage-run-tests ? null }:
|
|
|
|
let
|
|
fhsArgs = appimageTools.defaultFhsEnvArgs;
|
|
in buildFHSUserEnv (fhsArgs // {
|
|
name = "appimage-run";
|
|
|
|
targetPkgs = pkgs: [ appimageTools.appimage-exec ]
|
|
++ fhsArgs.targetPkgs pkgs ++ extraPkgs pkgs;
|
|
runScript = "appimage-exec.sh";
|
|
|
|
passthru.tests.appimage-run = appimage-run-tests;
|
|
})
|