treewide: remove unused lib (and other) arguments

This commit is contained in:
Sigmanificient 2024-07-17 05:26:36 +02:00
parent da8fd5be9f
commit 6dd44107ac
141 changed files with 120 additions and 218 deletions

View File

@ -1,4 +1,4 @@
{ lib, ... }: { ... }:
{ {
config = { config = {

View File

@ -1,4 +1,4 @@
{ lib, custom, ... }: { custom, ... }:
{ {
config = { config = {

View File

@ -1,4 +1,4 @@
{ lib, ... }: { ... }:
{ {
disabledModules = [ ./declare-enable.nix ]; disabledModules = [ ./declare-enable.nix ];

View File

@ -1,4 +1,4 @@
{ lib, ... }: { ... }:
{ {
disabledModules = [ (toString ./define-enable.nix) ]; disabledModules = [ (toString ./define-enable.nix) ];

View File

@ -1,4 +1,4 @@
{ lib, ... }: { ... }:
{ {
disabledModules = [ ./define-enable.nix ]; disabledModules = [ ./define-enable.nix ];

View File

@ -1,4 +1,4 @@
{ lib, ... }: { ... }:
{ {
disabledModules = [ "define-enable.nix" "declare-enable.nix" ]; disabledModules = [ "define-enable.nix" "declare-enable.nix" ];

View File

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, ... }:
{ {
config = { config = {
services.foo.enable = true; services.foo.enable = true;

View File

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, ... }:
{ {
config = { config = {
services.foos."".bar = "baz"; services.foos."".bar = "baz";

View File

@ -1,4 +1,4 @@
{ config, lib, options, ... }: { config, options, ... }:
{ {
config = { config = {
result = result =

View File

@ -1,4 +1,4 @@
{ lib, ... }: { ... }:
{ {
imports = [ imports = [

View File

@ -1,4 +1,4 @@
{ lib, ... }: { ... }:
let let
typeless = typeless =

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, modulesPath, ... }: { modulesPath, ... }:
{ {
imports = imports =

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, modulesPath, ... }: { modulesPath, ... }:
{ {
imports = imports =

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, pkgs, ... }:
let let
inherit (pkgs) writeScript; inherit (pkgs) writeScript;

View File

@ -1,7 +1,7 @@
# Common configuration for virtual machines running under QEMU (using # Common configuration for virtual machines running under QEMU (using
# virtio). # virtio).
{ config, lib, ... }: { ... }:
{ {
boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "9p" "9pnet_virtio" ]; boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "9p" "9pnet_virtio" ];

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, pkgs, ... }:
let apparmor = config.security.apparmor; in let apparmor = config.security.apparmor; in
{ {
config.security.apparmor.packages = [ pkgs.apparmor-profiles ]; config.security.apparmor.packages = [ pkgs.apparmor-profiles ];

View File

@ -1,4 +1,4 @@
{ lib, nodes, pkgs, ... }: { nodes, ... }:
let let
caCert = nodes.acme.test-support.acme.caCert; caCert = nodes.acme.test-support.acme.caCert;
caDomain = nodes.acme.test-support.acme.caDomain; caDomain = nodes.acme.test-support.acme.caDomain;

View File

@ -1,4 +1,4 @@
{ pkgs, lib, makeInstalledTest, ... }: { pkgs, makeInstalledTest, ... }:
makeInstalledTest { makeInstalledTest {
tested = pkgs.ostree; tested = pkgs.ostree;

View File

@ -1,6 +1,5 @@
{ callPackage { callPackage
, timeshift-unwrapped , timeshift-unwrapped
, lib
, rsync , rsync
, coreutils , coreutils
, mount , mount

View File

@ -1,5 +1,4 @@
{ lib { buildFHSEnv
, buildFHSEnv
, sparrow-unwrapped , sparrow-unwrapped
}: }:

View File

@ -1,6 +1,6 @@
# run tests by building `neovim.tests` # run tests by building `neovim.tests`
{ vimUtils, writeText, neovim, vimPlugins { vimUtils, writeText, neovim, vimPlugins
, lib, neovimUtils, wrapNeovimUnstable , neovimUtils, wrapNeovimUnstable
, neovim-unwrapped , neovim-unwrapped
, fetchFromGitLab , fetchFromGitLab
, runCommandLocal , runCommandLocal

View File

@ -1,5 +1,4 @@
{ lib { makeWrapper
, makeWrapper
, nixosTests , nixosTests
, symlinkJoin , symlinkJoin

View File

@ -1,5 +1,4 @@
{ lib { makeWrapper
, makeWrapper
, nixosTests , nixosTests
, symlinkJoin , symlinkJoin

View File

@ -1,5 +1,4 @@
{ stdenv { stdenv
, lib
, blender , blender
, makeWrapper , makeWrapper
, extraModules ? [] , extraModules ? []

View File

@ -1,5 +1,4 @@
{ lib { runCommand
, runCommand
, makeWrapper , makeWrapper
, tubekit-unwrapped , tubekit-unwrapped
, pname ? "tubekit" , pname ? "tubekit"

View File

@ -1,5 +1,4 @@
{ lib { stdenv
, stdenv
, fetchurl , fetchurl
, pname , pname
, version , version

View File

@ -1,4 +1,4 @@
{ lib, ocamlPackages }: { ocamlPackages }:
with ocamlPackages; buildDunePackage { with ocamlPackages; buildDunePackage {
pname = "msat-bin"; pname = "msat-bin";

View File

@ -1,4 +1,4 @@
{ lib, stdenv, writeScriptBin, jupyter, wolfram-for-jupyter-kernel }: { stdenv, writeScriptBin, jupyter, wolfram-for-jupyter-kernel }:
let let
wolfram-jupyter = jupyter.override { definitions = { wolfram = wolfram-for-jupyter-kernel.definition; }; }; wolfram-jupyter = jupyter.override { definitions = { wolfram = wolfram-for-jupyter-kernel.definition; }; };

View File

@ -1,9 +1,6 @@
{ lib { appimageTools
, appimageTools
, fetchurl , fetchurl
, makeWrapper , makeWrapper
, gtk3
, gsettings-desktop-schemas
, pname , pname
, version , version
, hash , hash

View File

@ -1,4 +1,4 @@
{ lib, stdenv, ghcWithPackages, taffybar, makeWrapper, packages ? (x: []) }: { stdenv, ghcWithPackages, taffybar, makeWrapper, packages ? (x: []) }:
let let
taffybarEnv = ghcWithPackages (self: [ taffybarEnv = ghcWithPackages (self: [

View File

@ -1,4 +1,4 @@
{ testers, fetchtorrent, lib, ... }: { testers, fetchtorrent, ... }:
let let
wired-cd.meta.license = [ wired-cd.meta.license = [

View File

@ -1,4 +1,4 @@
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello, emptyFile }: { runCommand, concatText, writeText, hello, emptyFile }:
let let
stri = writeText "pathToTest"; stri = writeText "pathToTest";
txt1 = stri "abc"; txt1 = stri "abc";

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, authentik }: { buildGoModule, authentik }:
buildGoModule { buildGoModule {
pname = "authentik-ldap-outpost"; pname = "authentik-ldap-outpost";

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, authentik }: { buildGoModule, authentik }:
buildGoModule { buildGoModule {
pname = "authentik-radius-outpost"; pname = "authentik-radius-outpost";

View File

@ -1,5 +1,4 @@
{ lib { cue
, cue
, runCommand , runCommand
}: }:

View File

@ -1,5 +1,4 @@
{ lib { rustPlatform
, rustPlatform
, libdeltachat , libdeltachat
, perl , perl
, pkg-config , pkg-config

View File

@ -1,5 +1,4 @@
{ lib { rustPlatform
, rustPlatform
, libdeltachat , libdeltachat
, perl , perl
, pkg-config , pkg-config

View File

@ -0,0 +1,20 @@
{
fetchpatch,
duckstation,
shaderc,
}:
shaderc.overrideAttrs (old: {
pname = "shaderc-patched-for-duckstation";
patches = (old.patches or [ ]) ++ [
(fetchpatch {
url = "file://${duckstation.src}/scripts/shaderc-changes.patch";
hash = "sha256-Ps/D+CdSbjVWg3ZGOEcgbpQbCNkI5Nuizm4E5qiM9Wo=";
excludes = [
"CHANGES"
"CMakeLists.txt"
"libshaderc/CMakeLists.txt"
];
})
];
})

View File

@ -1,9 +1,7 @@
{ lib { stdenv
, stdenv
, fetchYarnDeps , fetchYarnDeps
, fixup-yarn-lock , fixup-yarn-lock
, yarn , yarn
, fetchFromGitea
, src , src
, version , version
, nodejs , nodejs

View File

@ -1,5 +1,4 @@
{ lib { stdenv
, stdenv
, elvish , elvish
, substituteAll , substituteAll
}: }:

View File

@ -1,4 +1,4 @@
{ stdenv, lib, ghdl-llvm, ghdl-mcode, ghdl-gcc, backend }: { stdenv, ghdl-llvm, ghdl-mcode, ghdl-gcc, backend }:
let let
ghdl = if backend == "llvm" then ghdl-llvm else if backend == "gcc" then ghdl-gcc else ghdl-mcode; ghdl = if backend == "llvm" then ghdl-llvm else if backend == "gcc" then ghdl-gcc else ghdl-mcode;

View File

@ -1,5 +1,4 @@
{ lib { stdenv
, stdenv
, haunt , haunt
}: }:

View File

@ -1,7 +1,6 @@
{ stdenv { stdenv
, fetchurl , fetchurl
, undmg , undmg
, lib
, meta , meta
, pname , pname
, version , version

View File

@ -1,5 +1,4 @@
{ lib { appimageTools
, appimageTools
, fetchurl , fetchurl
, version , version
, pname , pname

View File

@ -1,5 +1,4 @@
{ lib { python3
, python3
, fetchFromGitHub , fetchFromGitHub
}: }:

View File

@ -1,5 +1,4 @@
{ {
lib,
runCommand, runCommand,
ratchet, ratchet,
}: let }: let

View File

@ -1,5 +1,4 @@
{ lib { stdenvNoCC
, stdenvNoCC
, fetchurl , fetchurl
, undmg , undmg
, pname , pname

View File

@ -1,5 +1,4 @@
{ lib { stdenv
, stdenv
, fetchurl , fetchurl
, autoPatchelfHook , autoPatchelfHook
, rpmextract , rpmextract

View File

@ -1,9 +1,5 @@
# Dependency of pygame, toppler # Dependency of pygame, toppler
{ { SDL2_image, fetchurl }:
lib,
SDL2_image,
fetchurl,
}:
SDL2_image.overrideAttrs (oldAttrs: { SDL2_image.overrideAttrs (oldAttrs: {
version = "2.0.5"; version = "2.0.5";

View File

@ -1,10 +1,6 @@
# Dependency for hedgewars: # Dependency for hedgewars:
# https://github.com/NixOS/nixpkgs/pull/274185#issuecomment-1856764786 # https://github.com/NixOS/nixpkgs/pull/274185#issuecomment-1856764786
{ { SDL2_image, fetchurl }:
lib,
SDL2_image,
fetchurl,
}:
SDL2_image.overrideAttrs (oldAttrs: { SDL2_image.overrideAttrs (oldAttrs: {
version = "2.6.3"; version = "2.6.3";

View File

@ -1,5 +1,4 @@
{ lib { stdenv
, stdenv
, spigot , spigot
}: }:

View File

@ -1,5 +1,4 @@
{ {
lib,
swayfx-unwrapped, swayfx-unwrapped,
sway, sway,
# Used by the NixOS module: # Used by the NixOS module:

View File

@ -1,5 +1,4 @@
{ lib { stdenv
, stdenv
, boost , boost
, libX11 , libX11
, libXext , libXext

View File

@ -1,7 +1,5 @@
{ lib { stdenv
, stdenv
, boost , boost
, cmake
, gettext , gettext
, libdrm , libdrm
, meson , meson

View File

@ -1,5 +1,4 @@
{ lib { stdenv
, stdenv
, ucg , ucg
}: }:

View File

@ -1,6 +1,4 @@
{ lib { makeSetupHook
, pkgs
, makeSetupHook
, waf , waf
}: }:

View File

@ -1,5 +1,4 @@
{ {
lib,
stdenv, stdenv,
fetchurl, fetchurl,
unzip, unzip,

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchurl }: { stdenvNoCC, fetchurl }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "baekmuk-ttf"; pname = "baekmuk-ttf";

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchurl }: { stdenvNoCC, fetchurl }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "bakoma-ttf"; pname = "bakoma-ttf";

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchurl }: { stdenvNoCC, fetchurl }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "lmodern"; pname = "lmodern";

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchzip }: { stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "mph-2b-damase"; pname = "mph-2b-damase";

View File

@ -1,5 +1,4 @@
{ mkDerivation { mkDerivation
, lib
, extra-cmake-modules , extra-cmake-modules
, kdoctools , kdoctools
, libdbusmenu , libdbusmenu

View File

@ -1,7 +1,7 @@
# This derivation is a reduced-functionality variant of Gambit stable, # This derivation is a reduced-functionality variant of Gambit stable,
# used to compile the full version of Gambit stable *and* unstable. # used to compile the full version of Gambit stable *and* unstable.
{ gccStdenv, lib, fetchurl, autoconf, gcc, coreutils, gambit-support, ... }: { gccStdenv, fetchurl, autoconf, gcc, coreutils, gambit-support, ... }:
# As explained in build.nix, GCC compiles Gambit 10x faster than Clang, for code 3x better # As explained in build.nix, GCC compiles Gambit 10x faster than Clang, for code 3x better
gccStdenv.mkDerivation { gccStdenv.mkDerivation {

View File

@ -1,8 +1,4 @@
{ { makeSetupHook, zig }:
lib,
makeSetupHook,
zig,
}:
makeSetupHook { makeSetupHook {
name = "zig-hook"; name = "zig-hook";

View File

@ -1,8 +1,4 @@
{ { makeSetupHook, zig }:
lib,
makeSetupHook,
zig,
}:
makeSetupHook { makeSetupHook {
name = "zig-hook"; name = "zig-hook";

View File

@ -1,8 +1,4 @@
{ { makeSetupHook, zig }:
lib,
makeSetupHook,
zig,
}:
makeSetupHook { makeSetupHook {
name = "zig-hook"; name = "zig-hook";

View File

@ -1,8 +1,4 @@
{ { makeSetupHook, zig }:
lib,
makeSetupHook,
zig,
}:
makeSetupHook { makeSetupHook {
name = "zig-hook"; name = "zig-hook";

View File

@ -1,8 +1,4 @@
{ { makeSetupHook, zig }:
lib,
makeSetupHook,
zig,
}:
makeSetupHook { makeSetupHook {
name = "zig-hook"; name = "zig-hook";

View File

@ -1,4 +1,4 @@
{ lib, mkCoqDerivation, coq, coq-hammer-tactics, version ? null }: { mkCoqDerivation, coq, coq-hammer-tactics, version ? null }:
mkCoqDerivation { mkCoqDerivation {
inherit version; inherit version;

View File

@ -1,5 +1,4 @@
{ lib { makeSetupHook
, makeSetupHook
, teensy-cmake-macros , teensy-cmake-macros
}: }:

View File

@ -1,5 +1,4 @@
{ lib { lua
, lua
, makeSetupHook , makeSetupHook
, makeWrapper , makeWrapper
}: }:

View File

@ -1,5 +1,4 @@
{ lib { octave
, octave
, makeSetupHook , makeSetupHook
, makeWrapper , makeWrapper
}: }:

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python27-docs-html"; pname = "python27-docs-html";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python27-docs-pdf-a4"; pname = "python27-docs-pdf-a4";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python27-docs-pdf-letter"; pname = "python27-docs-pdf-letter";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python27-docs-text"; pname = "python27-docs-text";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python310-docs-html"; pname = "python310-docs-html";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python310-docs-pdf-a4"; pname = "python310-docs-pdf-a4";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python310-docs-pdf-letter"; pname = "python310-docs-pdf-letter";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python310-docs-texinfo"; pname = "python310-docs-texinfo";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, lib, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "python310-docs-text"; pname = "python310-docs-text";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "pythonMAJORMINOR-docs-TYPE"; pname = "pythonMAJORMINOR-docs-TYPE";

View File

@ -1,6 +1,6 @@
# This file was generated and will be overwritten by ./generate.sh # This file was generated and will be overwritten by ./generate.sh
{ stdenv, fetchurl, lib }: { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "pythonMAJORMINOR-docs-TYPE"; pname = "pythonMAJORMINOR-docs-TYPE";

View File

@ -1,4 +1,4 @@
{ interpreter, lib, gdb, writeText, runCommand }: { interpreter, gdb, writeText, runCommand }:
let let
crashme-py = writeText "crashme.py" '' crashme-py = writeText "crashme.py" ''

View File

@ -1,5 +1,5 @@
{ {
mkDerivation, lib, mkDerivation,
extra-cmake-modules, extra-cmake-modules,
qtbase, qttools qtbase, qttools
}: }:

View File

@ -1,5 +1,4 @@
{ lib { stdenv
, stdenv
, fetchFromGitHub , fetchFromGitHub
, libde265 , libde265
}: }:

View File

@ -1,5 +1,4 @@
{ lib { qtModule, python3, qtbase, qtsvg }:
, qtModule, python3, qtbase, qtsvg }:
qtModule { qtModule {
pname = "qtdeclarative"; pname = "qtdeclarative";

View File

@ -1,5 +1,4 @@
{ lib { callPackage
, callPackage
, fetchurl , fetchurl
, tcl , tcl
, ... , ...

View File

@ -1,5 +1,4 @@
{ {
lib,
stdenv, stdenv,
python, python,
build, build,

View File

@ -1,5 +1,4 @@
{ {
lib,
stdenv, stdenv,
python, python,
flit-core, flit-core,

View File

@ -1,5 +1,4 @@
{ {
lib,
stdenv, stdenv,
python, python,
flit-core, flit-core,

View File

@ -1,5 +1,4 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
pythonOlder, pythonOlder,
pkg-config, pkg-config,

View File

@ -1,5 +1,4 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
pythonOlder, pythonOlder,
edlib, edlib,

View File

@ -1,7 +1,5 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
callPackage,
libeduvpn-common, libeduvpn-common,
selenium, selenium,
setuptools, setuptools,

View File

@ -1,7 +1,5 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
callPackage,
horizon-eda, horizon-eda,
mesa, mesa,
pycairo, pycairo,

View File

@ -1,5 +1,4 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
linien-common, linien-common,
linien-client, linien-client,

View File

@ -1,5 +1,4 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
poetry-core, poetry-core,
llama-index-agent-openai, llama-index-agent-openai,

View File

@ -1,5 +1,4 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
pythonOlder, pythonOlder,
hatchling, hatchling,

View File

@ -1,5 +1,4 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
pythonOlder, pythonOlder,
deprecated, deprecated,

View File

@ -1,5 +1,4 @@
{ {
lib,
buildPythonPackage, buildPythonPackage,
pythonOlder, pythonOlder,
deprecated, deprecated,

Some files were not shown because too many files have changed in this diff Show More