-
-
Save bignaux/514aae3bc4e1f8a54530b0b3340a744f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ buildFHSUserEnv, coreutils, file, libarchive, runtimeShell | |
, extraPkgs ? pkgs: [], appimageTools }: | |
let | |
version = "1.0"; | |
fhsArgs = appimageTools.defaultFhsEnvArgs; | |
in buildFHSUserEnv (fhsArgs // { | |
name = "appimage-run"; | |
targetPkgs = pkgs: | |
[ file | |
libarchive | |
] ++ fhsArgs.targetPkgs pkgs ++ extraPkgs pkgs; | |
extraInstallCommands = '' | |
substituteAll ${./appimage-exec.sh} $out/bin/appimage-exec.sh | |
chmod +x $out/bin/appimage-exec.sh | |
''; | |
runScript = "appimage-exec.sh"; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment