[Nix-dev] my first Nixpkgs patches

François Perrad francois.perrad at gadz.org
Mon Mar 29 18:13:01 CEST 2010


2010/3/29 Marc Weber <marco-oweber at gmx.de>:
> Hi François Perrad,
>
> Sorry for the long delay. I've been busy. You're welcome.
>
> patch adding perllib ack:
>
>  +  ack = perlPackages.ack;
>
>  Do you think your library is used very much?

most of Perl packages are only module/library.
but 'ack' is a command line utility (a grep like)

>
>  In any case you should consider calling the global name in
>  all-packages.nix "perlAck". This naming is consistent and similar to
>
>     perlXMLParser = perlPackages.XMLParser;
>
> patch adding Scala:
>
>  +    license = "bsd";
>
>  Have a look at:
>  pkgs/lib/licenses.nix

i've read only Nixpkgs Manual (4.2 Licenses) which seems out of date.

find attached a new version of 3 patches (scala, groovy, gradle)

>
>  We use upper case characters for BSD license.
>
>
> patch adding groovy:
>
>  +  inherit unzip;
>
>  I don't think you have to define ENV var unzip. Adding it to
>  buildInputs should suffice
>
>
>  +  installPhase = ''
>  +    mkdir -p $out
>  +    mv * $out
>  +    rm -f $out/bin/*.bat
>  +  '';
>
>  That's fine. Usually we use ensureDir instead of mkdir -p.
>
>  By removing *.bat before copying to $out you can save some typing (but
>  this is just a hint - you may ignore it):
>
>  +  installPhase = ''
>  +    ensureDir $out
>  +    rm bin/*.bat
>  +    mv * $out
>  +  '';
>
>
> patch 0002-add-perlcritic-1.105-and-Test-Perl-Critic-1.02.patch
>
>  +  perlcritic = perlPackages.PerlCritic;
>
>  Same as ack. See above

like ack, perlcritic is a command line utility

>
>
> patch 0003-add-Gradle-0.8.patch
>
>  +  inherit unzip;
>
>  +    license = "bsd"; # Apache
>
>  See above. I should have a look at Gradle.
>
>
> Note: I didn't test your expressions. If you're fine with those small
> changes I'll commit you patches.
>
> Marc Weber
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-update-Scala-2.7.7.patch
Type: text/x-diff
Size: 1812 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100329/34d369e6/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-add-Groovy-1.7.1.patch
Type: text/x-diff
Size: 1799 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100329/34d369e6/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-add-Gradle-0.8.patch
Type: text/x-diff
Size: 2200 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100329/34d369e6/attachment-0002.bin 


More information about the nix-dev mailing list