Advertisement
Guest User

Untitled

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