Merge pull request #291577 from SuperSandro2000/appimage-run-mainProgram

This commit is contained in:
Sandro 2024-04-18 11:10:48 +02:00 committed by GitHub
commit 1e7d373d31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,10 @@
{ appimageTools, buildFHSEnv, makeDesktopItem, extraPkgs ? pkgs: [], appimage-run-tests ? null }:
{ lib
, appimageTools
, buildFHSEnv
, makeDesktopItem
, extraPkgs ? pkgs: []
, appimage-run-tests ? null
}:
let
name = "appimage-run";
@ -14,7 +20,7 @@ let
mimeTypes = ["application/vnd.appimage" "application/x-iso9660-appimage"];
categories = ["PackageManager" "Utility"];
};
in buildFHSEnv (fhsArgs // {
in buildFHSEnv (lib.recursiveUpdate fhsArgs {
inherit name;
targetPkgs = pkgs: [ appimageTools.appimage-exec ]
@ -26,4 +32,6 @@ in buildFHSEnv (fhsArgs // {
'';
passthru.tests.appimage-run = appimage-run-tests;
meta.mainProgram = "appimage-run";
})