various: remove unused arguments, use finalAttrs (#518844)

This commit is contained in:
Michael Daniels
2026-05-17 14:36:32 +00:00
committed by GitHub
4 changed files with 5 additions and 8 deletions
+4 -4
View File
@@ -4,14 +4,14 @@
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage rec {
buildNpmPackage (finalAttrs: {
pname = "eslint";
version = "10.3.0";
src = fetchFromGitHub {
owner = "eslint";
repo = "eslint";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-b0Gv7soMPTsbMOZLqMe5vMCPwInk9AFusepf2jJH/Ng=";
};
@@ -35,7 +35,7 @@ buildNpmPackage rec {
};
meta = {
changelog = "https://github.com/eslint/eslint/blob/${src.tag}/CHANGELOG.md";
changelog = "https://github.com/eslint/eslint/blob/${finalAttrs.src.rev}/CHANGELOG.md";
description = "Find and fix problems in your JavaScript code";
homepage = "https://eslint.org";
license = lib.licenses.mit;
@@ -44,4 +44,4 @@ buildNpmPackage rec {
onny
];
};
}
})
-1
View File
@@ -1,7 +1,6 @@
{
fetchFromGitHub,
lib,
nix,
nix-update-script,
rustPlatform,
}:
@@ -1,7 +1,6 @@
{
lib,
stdenv,
fetchpatch2,
fetchurl,
ncurses,
pkg-config,
+1 -2
View File
@@ -4,7 +4,6 @@
fetchurl,
ed,
autoreconfHook,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -27,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
"ac_cv_func_strnlen_working=yes"
];
doCheck = stdenv.hostPlatform.libc != "musl"; # not cross;
doCheck = stdenv.hostPlatform.libc != "musl";
nativeCheckInputs = [ ed ];
meta = {