Skip to content

Instantly share code, notes, and snippets.

@bignaux
Created March 5, 2020 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bignaux/514aae3bc4e1f8a54530b0b3340a744f to your computer and use it in GitHub Desktop.
Save bignaux/514aae3bc4e1f8a54530b0b3340a744f to your computer and use it in GitHub Desktop.
{ 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