Created
March 5, 2020 17:33
-
-
Save bignaux/dbc2888171b9da1d314a49f27a42a479 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, stdenv }: | |
let | |
version = "1.0"; | |
fhsArgs = appimageTools.defaultFhsEnvArgs; | |
appimage-exec = stdenv.mkDerivation { | |
#inherit pname version; | |
name = "appimage-exec"; | |
buildInputs = [ coreutils file libarchive ]; | |
buildCommand = '' | |
mkdir -p $out/bin/ | |
substituteAll ${./appimage-exec.sh} $out/bin/appimage-exec.sh | |
chmod +x $out/bin/appimage-exec.sh | |
''; | |
}; | |
in buildFHSUserEnv (fhsArgs // { | |
name = "appimage-run"; | |
targetPkgs = pkgs: | |
[ appimage-exec | |
] ++ fhsArgs.targetPkgs pkgs ++ extraPkgs pkgs; | |
extraInstallCommands = '' | |
echo "sa" | |
''; | |
runScript = "appimage-exec.sh"; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment