diff --git a/doc/language-support.xml b/doc/language-support.xml
index dc63dd685038..47729a1b4ba9 100644
--- a/doc/language-support.xml
+++ b/doc/language-support.xml
@@ -18,10 +18,10 @@ such as Perl or Haskell. These are described in this chapter.
Nixpkgs provides a function buildPerlPackage,
a generic package builder function for any Perl package that has a
standard Makefile.PL. It’s implemented in pkgs/development/perl-modules/generic.
+xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/perl-modules/generic">pkgs/development/perl-modules/generic.
Perl packages from CPAN are defined in pkgs/perl-packages.nix,
+xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/perl-packages.nix">pkgs/perl-packages.nix,
rather than pkgs/all-packages.nix. Most Perl
packages are so straight-forward to build that they are defined here
directly, rather than having a separate function for each package
@@ -162,7 +162,7 @@ ClassC3Componentised = buildPerlPackage rec {
which many Python packages do nowadays, can be built very simply using
the buildPythonPackage function. This function is
implemented
- in pkgs/development/python-modules/generic/default.nix
+ in pkgs/development/python-modules/generic/default.nix
and works similarly to buildPerlPackage. (See
for details.)
@@ -170,7 +170,7 @@ ClassC3Componentised = buildPerlPackage rec {
Python packages that use buildPythonPackage are
defined
- in pkgs/top-level/python-packages.nix.
+ in pkgs/top-level/python-packages.nix.
Most of them are simple. For example:
diff --git a/doc/meta.xml b/doc/meta.xml
index 8ed91d9a8c8c..30b5ad247d16 100644
--- a/doc/meta.xml
+++ b/doc/meta.xml
@@ -103,7 +103,7 @@ interpretation:
<alice@example.org>" "Bob <bob@example.com>"]. If
you are the maintainer of multiple packages, you may want to add
yourself to pkgs/lib/maintainers.nix
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/lib/maintainers.nix">pkgs/lib/maintainers.nix
and write something like [stdenv.lib.maintainers.alice
stdenv.lib.maintainers.bob].
diff --git a/doc/package-notes.xml b/doc/package-notes.xml
index 9d2cd0ef16b7..6dae036b3382 100644
--- a/doc/package-notes.xml
+++ b/doc/package-notes.xml
@@ -16,7 +16,7 @@ Linux kernel or X.org.
Linux kernelThe Nix expressions to build the Linux kernel are in pkgs/os-specific/linux/kernel.
+xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel">pkgs/os-specific/linux/kernel.
The function that builds the kernel has an argument
kernelPatches which should be a list of
@@ -49,7 +49,7 @@ modulesTree = [kernel]
- Copy (svn cp) the old Nix expression
+ Copy the old Nix expression
(e.g. linux-2.6.21.nix) to the new one
(e.g. linux-2.6.22.nix) and update it.
@@ -69,7 +69,7 @@ modulesTree = [kernel]
- Make an svn copy from the old
+ Make an copy from the old
config (e.g. config-2.6.21-i686-smp) to
the new one
(e.g. config-2.6.22-i686-smp).
diff --git a/doc/quick-start.xml b/doc/quick-start.xml
index 2651e2a1eee0..dddbbb4a19ec 100644
--- a/doc/quick-start.xml
+++ b/doc/quick-start.xml
@@ -12,7 +12,7 @@
Checkout the Nixpkgs source tree:
-$ svn checkout https://svn.nixos.org/repos/nix/nixpkgs/trunk nixpkgs
+$ git clone git://github.com/NixOS/nixpkgs.git
$ cd nixpkgs
@@ -29,7 +29,7 @@ $ cd nixpkgs
organisation. Create a directory for your package, e.g.
-$ svn mkdir pkgs/development/libraries/libfoo
+$ mkdir pkgs/development/libraries/libfoo
@@ -44,7 +44,7 @@ $ svn mkdir pkgs/development/libraries/libfoo
$ emacs pkgs/development/libraries/libfoo/default.nix
-$ svn add pkgs/development/libraries/libfoo/default.nix
+$ git add pkgs/development/libraries/libfoo/default.nix
@@ -56,7 +56,7 @@ $ svn add pkgs/development/libraries/libfoo/default.nix
GNU cpio: pkgs/tools/archivers/cpio/default.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/archivers/cpio/default.nix">pkgs/tools/archivers/cpio/default.nix.
The simplest possible package. The generic builder in
stdenv does everything for you. It has
no dependencies beyond stdenv.
@@ -64,21 +64,21 @@ $ svn add pkgs/development/libraries/libfoo/default.nix
GNU Hello: pkgs/applications/misc/hello/ex-2/default.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/hello/ex-2/default.nix">pkgs/applications/misc/hello/ex-2/default.nix.
Also trivial, but it specifies some meta
attributes which is good practice.GNU Multiple Precision arithmetic library (GMP): pkgs/development/libraries/gmp/default.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/gmp/default.nix">pkgs/development/libraries/gmp/default.nix.
Also done by the generic builder, but has a dependency on
m4.Pan, a GTK-based newsreader: pkgs/applications/networking/newsreaders/pan/default.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/newsreaders/pan/default.nix">pkgs/applications/networking/newsreaders/pan/default.nix.
Has an optional dependency on gtkspell,
which is only built if spellCheck is
true.
@@ -86,7 +86,7 @@ $ svn add pkgs/development/libraries/libfoo/default.nix
Apache HTTPD: pkgs/servers/http/apache-httpd/default.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/http/apache-httpd/default.nix">pkgs/servers/http/apache-httpd/default.nix.
A bunch of optional features, variable substitutions in the
configure flags, a post-install hook, and miscellaneous
hackery.
@@ -94,9 +94,9 @@ $ svn add pkgs/development/libraries/libfoo/default.nix
BitTorrent (wxPython-based): pkgs/tools/networking/p2p/bittorrent/default.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/p2p/bittorrent/default.nix">pkgs/tools/networking/p2p/bittorrent/default.nix.
Uses an external build
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/p2p/bittorrent/builder.sh">build
script, which can be useful if you have lots of code
that you don’t want cluttering up the Nix expression. But
external builders are mostly obsolete.
@@ -105,22 +105,22 @@ $ svn add pkgs/development/libraries/libfoo/default.nix
Thunderbird: pkgs/applications/networking/mailreaders/thunderbird/3.x.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/mailreaders/thunderbird/3.x.nix">pkgs/applications/networking/mailreaders/thunderbird/3.x.nix.
Lots of dependencies.JDiskReport, a Java utility: pkgs/tools/misc/jdiskreport/default.nix
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/jdiskreport/default.nix">pkgs/tools/misc/jdiskreport/default.nix
(and the builder).
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/jdiskreport/builder.sh">builder).
Nixpkgs doesn’t have a decent stdenv for
Java yet so this is pretty ad-hoc.XML::Simple, a Perl module: pkgs/top-level/perl-packages.nix
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/perl-packages.nix">pkgs/top-level/perl-packages.nix
(search for the XMLSimple attribute).
Most Perl modules are so simple to build that they are
defined directly in perl-packages.nix;
@@ -129,10 +129,10 @@ $ svn add pkgs/development/libraries/libfoo/default.nix
Adobe Reader: pkgs/applications/misc/adobe-reader/default.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/default.nix">pkgs/applications/misc/adobe-reader/default.nix.
Shows how binary-only packages can be supported. In
particular the builder
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/builder.sh">builder
uses patchelf to set the RUNPATH and ELF
interpreter of the executables so that the right libraries
are found at runtime.
@@ -163,7 +163,7 @@ $ svn add pkgs/development/libraries/libfoo/default.nix
A list of schemes for mirror://
URLs can be found in pkgs/build-support/fetchurl/mirrors.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/mirrors.nix">pkgs/build-support/fetchurl/mirrors.nix.
@@ -181,7 +181,7 @@ $ svn add pkgs/development/libraries/libfoo/default.nix
Add a call to the function defined in the previous step to
pkgs/top-level/all-packages.nix
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix">pkgs/top-level/all-packages.nix
with some descriptive name for the variable,
e.g. libfoo.
@@ -220,8 +220,7 @@ $ nix-env -f . -iA libfoo
- Optionally commit the new package (svn
- ci) or send a patch to
+ Optionally commit the new package, or send a patch to
nix-dev@cs.uu.nl.
@@ -230,7 +229,7 @@ $ nix-env -f . -iA libfoo
package and make them available in the nixpkgs
channel, add it to pkgs/top-level/release.nix.
+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/release.nix">pkgs/top-level/release.nix.