-
-
Save grahamc/18a9e9f8c2d7cbc16bfa902ae958da42 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
grahamc = { | |
guis = self.buildEnv { | |
name = "grahams-guis"; | |
pathsToLink = [ "/bin" ]; | |
extraOutputsToInstall = [ "bin" ]; | |
paths = with self; [ | |
(self.grahamc.pick firefox "bin/firefox") | |
google-chrome | |
(self.grahamc.pick custom-emacs "bin/emacs") | |
(self.grahamc.pick pavucontrol "bin/pavucontrol") | |
slack | |
]; | |
}; | |
pick = src: path: self.runCommand "picked" {} '' | |
mkdir -p "$(dirname "$out/${path}")" | |
ln -s "${src}/${path}" "$out/${path}" | |
''; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment