Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created June 15, 2020 02:00
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 grahamc/18a9e9f8c2d7cbc16bfa902ae958da42 to your computer and use it in GitHub Desktop.
Save grahamc/18a9e9f8c2d7cbc16bfa902ae958da42 to your computer and use it in GitHub Desktop.
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