Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with import <nixpkgs> {};
- gcc9Stdenv.mkDerivation rec {
- name = "env";
- buildInputs = [
- ## Fedora
- # @development-tools @c-development
- # autoconf213
- # gtk2-devel gtk3-devel
- # libXt-devel
- # GConf2-devel
- # dbus-glib-devel
- # yasm-devel
- # alsa-lib-devel pulseaudio-libs-devel
- ## Debian / Ubuntu
- # rustc cargo # cargo install cbindgen
- # autoconf2.13
- # libgtk-2-dev libgtk-3-dev
- # libgconf2-dev
- # libdbus-glib-1-dev
- # libpulse-dev
- # yasm
- ## Build Tools and Dependencies
- which
- gcc9Stdenv
- perl
- gtk2 gtk3
- xlibs.libXt
- gnome2.libIDL
- zip unzip
- freetype fontconfig
- # libgstreamer
- pkgconfig
- #dbus_libs dbus_glib
- dbus_glib
- alsaLib pulseaudio
- libnotify
- yasm
- python2
- autoconf213
- binutils
- gnome2.GConf
- libGLU_combined
- cargo rustc rust-cbindgen
- ## Dependencies
- # perl python2 pythonPackages.pip rustc cargo
- # gnome2.GConf gnused_422
- ## FF related
- # gcc9Stdenv pkgconfig gtk2 gtk3 glib gobjectIntrospection
- # dbus_libs dbus_glib alsaLib gcc xlibs.libXrender
- # xlibs.libX11 xlibs.libXext xlibs.libXft xlibs.libXt
- # ats pango freetype fontconfig gdk_pixbuf cairo python
- # git autoconf213 unzip zip yasm alsaLib dbus_libs which atk
- # gstreamer gst_plugins_base pulseaudio
- ];
- extraCmds = ''
- export C_INCLUDE_PATH=${dbus_libs}/include/dbus-1.0:${dbus_libs}/lib/dbus-1.0/include
- export CPLUS_INCLUDE_PATH=${dbus_libs}/include/dbus-1.0:${dbus_libs}/lib/dbus-1.0/include
- LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${gcc}/lib64
- for i in $nativeBuildInputs; do
- LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$i/lib
- done
- export LD_LIBRARY_PATH
- export AUTOCONF=autoconf
- '';
- }
- # Build prerequisites
- #
- # https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement