How to build Nix packages from source?
问题 I think NixOS is great, but can't figure out how to build a package from source. Understanding the Nix expression language is not the problem, but to know what to put in a default.nix in order to build a package. Take for example the Nix expression for gedit : { stdenv, intltool, fetchurl, enchant, isocodes , pkgconfig, gtk3, glib , bash, wrapGAppsHook, itstool, libsoup, libxml2 , gnome3, librsvg, gdk_pixbuf, file, gspell }: stdenv.mkDerivation rec { inherit (import ./src.nix fetchurl) name