Nix (language): Difference between revisions

imported>DieracDelta
m Added scrive to resources
imported>R-burns
m Driveby stdenv.lib deprecation cleanup: https://github.com/NixOS/nixpkgs/issues/108938
Line 358: Line 358:
'''In the package meta tag''':
'''In the package meta tag''':
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
{stdenv, ...}:
{lib, ...}:
{
{
   ...
   ...
   meta = with stdenv.lib; {
   meta = with lib; {
     license = with licenses; [ lgp3 gpl3 ];
     license = with licenses; [ lgp3 gpl3 ];
     maintainers = with maintainers; [ adisbladis lassulus ];
     maintainers = with maintainers; [ adisbladis lassulus ];
Line 369: Line 369:
Instead of :
Instead of :
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
{stdenv, ...}:
{lib, ...}:
{
{
   ...
   ...
   meta = {
   meta = {
     license = [ stdenv.lib.licenses.lgp3 stdenv.lib.licenses.gpl3 ];
     license = [ lib.licenses.lgp3 lib.licenses.gpl3 ];
     maintainers = [ stdenv.lib.maintainers.adisbladis stdenv.lib.maintainers.lassulus ];
     maintainers = [ lib.maintainers.adisbladis lib.maintainers.lassulus ];
   };
   };
}
}