Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
910 B
Nix
47 lines
910 B
Nix
{
|
|
lib,
|
|
appimageTools,
|
|
buildFHSEnv,
|
|
makeDesktopItem,
|
|
extraPkgs ? pkgs: [ ],
|
|
appimage-run-tests ? null,
|
|
}:
|
|
|
|
let
|
|
name = "appimage-run";
|
|
|
|
fhsArgs = appimageTools.defaultFhsEnvArgs;
|
|
|
|
desktopItem = makeDesktopItem {
|
|
inherit name;
|
|
exec = name;
|
|
desktopName = name;
|
|
genericName = "AppImage runner";
|
|
noDisplay = true;
|
|
mimeTypes = [
|
|
"application/vnd.appimage"
|
|
"application/x-iso9660-appimage"
|
|
];
|
|
categories = [
|
|
"PackageManager"
|
|
"Utility"
|
|
];
|
|
};
|
|
in
|
|
buildFHSEnv (
|
|
lib.recursiveUpdate fhsArgs {
|
|
inherit name;
|
|
|
|
targetPkgs = pkgs: [ appimageTools.appimage-exec ] ++ fhsArgs.targetPkgs pkgs ++ extraPkgs pkgs;
|
|
runScript = "appimage-exec.sh";
|
|
|
|
extraInstallCommands = ''
|
|
cp --recursive "${desktopItem}/share" "$out/"
|
|
'';
|
|
|
|
passthru.tests.appimage-run = appimage-run-tests;
|
|
|
|
meta.mainProgram = "appimage-run";
|
|
}
|
|
)
|