Skip to content

Instantly share code, notes, and snippets.

@MagnificentPako
Created August 15, 2018 16:27
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 MagnificentPako/d5675a6f521c9578dfec4d8e7cf4345b to your computer and use it in GitHub Desktop.
Save MagnificentPako/d5675a6f521c9578dfec4d8e7cf4345b to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
let mkEmojicodeApp = attrs: stdenv.mkDerivation ({
setupHook = ./setup-hook.sh;
} // attrs);
in
mkEmojicodeApp {
name = "test";
src = ./src;
buildInputs = [ hello ];
installPhase = ''
echo $EMOJICODE_PATH
'';
}
addPackagePath () {
addToSearchPath EMOJICODE_PATH $1/lib/emojicode
EMOJICODE_PATH += $1/lib/emojicode
echo $1
}
addEnvHooks "$targetOffset" addPackagePath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment