Advertisement
Guest User

default.nix

a guest
Nov 12th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. with import <nixpkgs> {};
  2. gcc9Stdenv.mkDerivation rec {
  3. name = "env";
  4. buildInputs = [
  5. ## Fedora
  6. # @development-tools @c-development
  7. # autoconf213
  8. # gtk2-devel gtk3-devel
  9. # libXt-devel
  10. # GConf2-devel
  11. # dbus-glib-devel
  12. # yasm-devel
  13. # alsa-lib-devel pulseaudio-libs-devel
  14.  
  15. ## Debian / Ubuntu
  16. # rustc cargo # cargo install cbindgen
  17. # autoconf2.13
  18. # libgtk-2-dev libgtk-3-dev
  19. # libgconf2-dev
  20. # libdbus-glib-1-dev
  21. # libpulse-dev
  22. # yasm
  23.  
  24. ## Build Tools and Dependencies
  25. which
  26.  
  27. gcc9Stdenv
  28. perl
  29. gtk2 gtk3
  30. xlibs.libXt
  31. gnome2.libIDL
  32. zip unzip
  33. freetype fontconfig
  34. # libgstreamer
  35. pkgconfig
  36. #dbus_libs dbus_glib
  37. dbus_glib
  38. alsaLib pulseaudio
  39. libnotify
  40. yasm
  41. python2
  42. autoconf213
  43. binutils
  44. gnome2.GConf
  45. libGLU_combined
  46. cargo rustc rust-cbindgen
  47.  
  48. ## Dependencies
  49. # perl python2 pythonPackages.pip rustc cargo
  50. # gnome2.GConf gnused_422
  51. ## FF related
  52. # gcc9Stdenv pkgconfig gtk2 gtk3 glib gobjectIntrospection
  53. # dbus_libs dbus_glib alsaLib gcc xlibs.libXrender
  54. # xlibs.libX11 xlibs.libXext xlibs.libXft xlibs.libXt
  55. # ats pango freetype fontconfig gdk_pixbuf cairo python
  56. # git autoconf213 unzip zip yasm alsaLib dbus_libs which atk
  57. # gstreamer gst_plugins_base pulseaudio
  58.  
  59. ];
  60. extraCmds = ''
  61. export C_INCLUDE_PATH=${dbus_libs}/include/dbus-1.0:${dbus_libs}/lib/dbus-1.0/include
  62. export CPLUS_INCLUDE_PATH=${dbus_libs}/include/dbus-1.0:${dbus_libs}/lib/dbus-1.0/include
  63. LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${gcc}/lib64
  64. for i in $nativeBuildInputs; do
  65. LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$i/lib
  66. done
  67. export LD_LIBRARY_PATH
  68. export AUTOCONF=autoconf
  69. '';
  70. }
  71.  
  72. # Build prerequisites
  73. #
  74. # https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement