diff options
author | Robert Helgesson <robert@rycee.net> | 2016-09-03 18:11:44 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2016-09-03 18:14:06 +0200 |
commit | 86af88d7c44e86996e1708dfaf8730a406f43853 (patch) | |
tree | c84b61d029961d261a1550e0ac1b05d9b0f5d3d4 /doc/languages-frameworks/perl.xml | |
parent | f8b447a6e4e592f08bdc6238d63594053dbaf952 (diff) |
perl docs: update generated expression
This provides an up-to-date illustration of how `nix-generate-from-cpan`
generates packages.
Diffstat (limited to 'doc/languages-frameworks/perl.xml')
-rw-r--r-- | doc/languages-frameworks/perl.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/languages-frameworks/perl.xml b/doc/languages-frameworks/perl.xml index 54b82f4a0560..dfb463b99912 100644 --- a/doc/languages-frameworks/perl.xml +++ b/doc/languages-frameworks/perl.xml @@ -157,16 +157,16 @@ expression on standard output. For example: <screen> $ nix-generate-from-cpan XML::Simple - XMLSimple = buildPerlPackage { - name = "XML-Simple-2.20"; + XMLSimple = buildPerlPackage rec { + name = "XML-Simple-2.22"; src = fetchurl { - url = mirror://cpan/authors/id/G/GR/GRANTM/XML-Simple-2.20.tar.gz; - sha256 = "5cff13d0802792da1eb45895ce1be461903d98ec97c9c953bc8406af7294434a"; + url = "mirror://cpan/authors/id/G/GR/GRANTM/${name}.tar.gz"; + sha256 = "b9450ef22ea9644ae5d6ada086dc4300fa105be050a2030ebd4efd28c198eb49"; }; propagatedBuildInputs = [ XMLNamespaceSupport XMLSAX XMLSAXExpat ]; meta = { - description = "Easily read/write XML (esp config files)"; - license = "perl"; + description = "An API for simple XML files"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; }; }; </screen> |