Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. system_path = pkgs.buildEnv {
  2. name = "system-path";
  3. paths = with pkgs; [
  4. kinit
  5. opengl_drivers
  6. ] ++ plasma5;
  7. pathsToLink =
  8. [ "/bin"
  9. "/etc/xdg"
  10. "/etc/gtk-2.0"
  11. "/etc/gtk-3.0"
  12. "/lib" # FIXME: remove and update debug-info.nix
  13. "/sbin"
  14. "/share/emacs"
  15. "/share/nano"
  16. "/share/org"
  17. "/share/themes"
  18. "/share/vim-plugins"
  19. "/share/vulkan"
  20. "/share/kservices5"
  21. "/share/kservicetypes5"
  22. "/share/kxmlgui5"
  23. "/share"
  24. ];
  25. ignoreCollisions = true;
  26. # !!! Hacky, should modularise.
  27. # outputs TODO: note that the tools will often not be linked by default
  28. postBuild =
  29. ''
  30. if [ -x $out/bin/gtk-update-icon-cache -a -f $out/share/icons/hicolor/index.theme ]; then
  31. $out/bin/gtk-update-icon-cache $out/share/icons/hicolor
  32. fi
  33. if [ -x $out/bin/glib-compile-schemas -a -w $out/share/glib-2.0/schemas ]; then
  34. $out/bin/glib-compile-schemas $out/share/glib-2.0/schemas
  35. fi
  36. '';
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement