Created
August 15, 2018 16:27
-
-
Save MagnificentPako/d5675a6f521c9578dfec4d8e7cf4345b 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
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 | |
''; | |
} |
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
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