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 = {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
# Common configuration for virtual machines running under QEMU (using
# virtio).
{ config, lib, ... }:
{ ... }:
{
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
{
config.security.apparmor.packages = [ pkgs.apparmor-profiles ];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ lib, ocamlPackages }:
{ ocamlPackages }:
with ocamlPackages; buildDunePackage {
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
wolfram-jupyter = jupyter.override { definitions = { wolfram = wolfram-for-jupyter-kernel.definition; }; };

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
{ lib
, rustPlatform
{ rustPlatform
, libdeltachat
, perl
, 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
, fixup-yarn-lock
, yarn
, fetchFromGitea
, src
, version
, nodejs

View File

@ -1,5 +1,4 @@
{ lib
, stdenv
{ stdenv
, elvish
, 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
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
}:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
# This derivation is a reduced-functionality variant of Gambit stable,
# 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
gccStdenv.mkDerivation {

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,4 @@
{
lib,
makeSetupHook,
zig,
}:
{ makeSetupHook, zig }:
makeSetupHook {
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 {
inherit version;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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