~aasg/nixexprs

61437e1c44b463cbb9b034fc1b2ce5d76f287ef1 — Aluísio Augusto Silva Gonçalves 2 years ago 6208e9c
Replace stdenv.lib with lib

This is a local counterpart of github:NixOS/nixpkgs#108938, which does
the same for Nixpkgs.  Generated files were not altered.
M pkgs/applications/networking/iwgtk/default.nix => pkgs/applications/networking/iwgtk/default.nix +2 -2
@@ 1,4 1,4 @@
{ stdenv, fetchFromGitHub, glib, gtk3, gzip, pkgconfig, wrapGAppsHook }:
{ stdenv, lib, fetchFromGitHub, glib, gtk3, gzip, pkgconfig, wrapGAppsHook }:

stdenv.mkDerivation rec {
  pname = "iwgtk";


@@ 20,7 20,7 @@ stdenv.mkDerivation rec {
    substituteInPlace "$out/share/applications/iwgtk.desktop" --replace "Exec=iwgtk" "Exec=$out/bin/iwgtk"
  '';

  meta = with stdenv.lib; {
  meta = with lib; {
    description = " Lightweight, graphical wifi management utility for Linux";
    longDescription = ''
      iwgtk is a lightweight, graphical wifi management utility for Linux.

M pkgs/os-specific/linux/rtl8723bu/default.nix => pkgs/os-specific/linux/rtl8723bu/default.nix +3 -3
@@ 1,4 1,4 @@
{ stdenv, fetchFromGitHub, kernel, concurrentMode ? false }:
{ stdenv, lib, fetchFromGitHub, kernel, concurrentMode ? false }:

stdenv.mkDerivation rec {
  pname = "rtl8723bu-unstable";


@@ 11,7 11,7 @@ stdenv.mkDerivation rec {
    hash = "sha256-NSLGB0dgDu5TIpS0GszBFjzC+8uIKncs+jeJowtBjLQ=";
  };

  postPatch = stdenv.lib.optionalString (!concurrentMode) ''
  postPatch = lib.optionalString (!concurrentMode) ''
    sed -i '/-DCONFIG_CONCURRENT_MODE/d' Makefile
  '';



@@ 37,7 37,7 @@ stdenv.mkDerivation rec {

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
  meta = with lib; {
    description = "Driver for RTL8723BU";
    longDescription = ''
      Kernel driver for Realtek RTL8723BU Wireless Adapter with hardware ID 0bda:b720.

M pkgs/tools/networking/dyndnsc/default.nix => pkgs/tools/networking/dyndnsc/default.nix +3 -3
@@ 1,4 1,4 @@
{ stdenv, python3Packages }:
{ stdenv, lib, python3Packages }:

python3Packages.buildPythonApplication rec {
  pname = "dyndnsc";


@@ 25,7 25,7 @@ python3Packages.buildPythonApplication rec {

  checkPhase =
    let
      inherit (stdenv.lib) concatStringsSep optional;
      inherit (lib) concatStringsSep optional;
      # dnswanip connects to an external server to discover the
      # machine's IP address.
      #


@@ 48,7 48,7 @@ python3Packages.buildPythonApplication rec {
  # Allow tests involving localhost on macOS.
  __darwinAllowLocalNetworking = true;

  meta = with stdenv.lib; {
  meta = with lib; {
    description = "Dynamic DNS update client with support for multiple protocols";
    longDescription = ''
      Dyndnsc is a command line client for sending updates to Dynamic

M pkgs/tools/text/drep/default.nix => pkgs/tools/text/drep/default.nix +3 -3
@@ 1,10 1,10 @@
{ stdenv, callPackage, defaultCrateOverrides, CoreServices }:
{ stdenv, lib, callPackage, defaultCrateOverrides, CoreServices }:

(callPackage ./Cargo.nix { }).workspaceMembers.drep.build.override {
  crateOverrides = defaultCrateOverrides // {
    drep = attrs: {
      buildInputs = stdenv.lib.optional stdenv.isDarwin CoreServices;
      meta = with stdenv.lib; {
      buildInputs = lib.optional stdenv.isDarwin CoreServices;
      meta = with lib; {
        description = "A grep with runtime reloadable filters";
        homepage = "https://github.com/maxpert/drep";
        license = licenses.mit;