nodePackages.postcss-cli: drop

It fails to build with

    trying https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 4246k  100 4246k    0     0  3381k      0  0:00:01  0:00:01 --:--:-- 3380k
    error: hash mismatch in fixed-output derivation '/nix/store/5pf4yg3grgzwqcjf0s1gy8lf9zh7qjdl-linux-x64-0.25.1.tgz.drv':
            likely URL: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz
             specified: sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==
                got:    sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==
    error: 1 dependencies of derivation '/nix/store/ypcyrc6mxydrzd95v09bifxdy7zqnp6d-postcss-cli-11.0.1.drv' failed to build
This commit is contained in:
Robert Schütz 2025-03-24 12:06:41 -07:00
parent 3b27e391de
commit 96b0bb6572
8 changed files with 2 additions and 206 deletions

View File

@ -173,6 +173,7 @@ mapAliases {
pkg = pkgs.vercel-pkg; # added 2023-10-04
inherit (pkgs) pm2; # added 2024-01-22
inherit (pkgs) pnpm; # added 2024-06-26
postcss-cli = throw "postcss-cli has been removed because it was broken"; # added 2025-03-24
prettier_d_slim = pkgs.prettier-d-slim; # added 2023-09-14
prettier-plugin-toml = throw "prettier-plugin-toml was removed because it provides no executable"; # added 2025-03-23
inherit (pkgs) prisma; # added 2024-08-31

View File

@ -34,7 +34,6 @@
lua-fmt = "luafmt";
parsoid = "parse.js";
poor-mans-t-sql-formatter-cli = "sqlformat";
postcss-cli = "postcss";
prettier = "prettier";
pulp = "pulp";
purescript-language-server = "purescript-language-server";

View File

@ -129,7 +129,6 @@
, "peerflix-server"
, "poor-mans-t-sql-formatter-cli"
, "postcss"
, "postcss-cli"
, "prebuild-install"
, "prettier"
, "pscid"

View File

@ -61402,95 +61402,6 @@ in
bypassCache = true;
reconstructLock = true;
};
postcss-cli = nodeEnv.buildNodePackage {
name = "postcss-cli";
packageName = "postcss-cli";
version = "11.0.1";
src = fetchurl {
url = "https://registry.npmjs.org/postcss-cli/-/postcss-cli-11.0.1.tgz";
sha512 = "0UnkNPSayHKRe/tc2YGW6XnSqqOA9eqpiRMgRlV1S6HdGi16vwJBx7lviARzbV1HpQHqLLRH3o8vTcB0cLc+5g==";
};
dependencies = [
sources."ansi-regex-5.0.1"
sources."ansi-styles-4.3.0"
sources."anymatch-3.1.3"
sources."binary-extensions-2.3.0"
sources."braces-3.0.3"
sources."chokidar-3.6.0"
sources."cliui-8.0.1"
sources."color-convert-2.0.1"
sources."color-name-1.1.4"
sources."dependency-graph-1.0.0"
sources."emoji-regex-8.0.0"
sources."esbuild-0.25.1"
sources."escalade-3.2.0"
(
sources."fdir-6.4.3"
// {
dependencies = [
sources."picomatch-4.0.2"
];
}
)
sources."fill-range-7.1.1"
sources."fs-extra-11.3.0"
sources."get-caller-file-2.0.5"
sources."get-tsconfig-4.10.0"
sources."glob-parent-5.1.2"
sources."graceful-fs-4.2.11"
sources."is-binary-path-2.1.0"
sources."is-extglob-2.1.1"
sources."is-fullwidth-code-point-3.0.0"
sources."is-glob-4.0.3"
sources."is-number-7.0.0"
sources."jiti-2.4.2"
sources."jsonfile-6.1.0"
sources."lilconfig-3.1.3"
sources."nanoid-3.3.9"
sources."normalize-path-3.0.0"
sources."picocolors-1.1.1"
sources."picomatch-2.3.1"
sources."pify-2.3.0"
sources."postcss-8.5.3"
sources."postcss-load-config-5.1.0"
sources."postcss-reporter-7.1.0"
sources."pretty-hrtime-1.0.3"
sources."read-cache-1.0.0"
sources."readdirp-3.6.0"
sources."require-directory-2.1.1"
sources."resolve-pkg-maps-1.0.0"
sources."slash-5.1.0"
sources."source-map-js-1.2.1"
sources."string-width-4.2.3"
sources."strip-ansi-6.0.1"
sources."thenby-1.3.4"
(
sources."tinyglobby-0.2.12"
// {
dependencies = [
sources."picomatch-4.0.2"
];
}
)
sources."to-regex-range-5.0.1"
sources."tsx-4.19.3"
sources."universalify-2.0.1"
sources."wrap-ansi-7.0.0"
sources."y18n-5.0.8"
sources."yaml-2.7.0"
sources."yargs-17.7.2"
sources."yargs-parser-21.1.1"
];
buildInputs = globalBuildInputs;
meta = {
description = "CLI for PostCSS";
homepage = "https://github.com/postcss/postcss-cli#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
prebuild-install = nodeEnv.buildNodePackage {
name = "prebuild-install";
packageName = "prebuild-install";

View File

@ -177,75 +177,6 @@ final: prev: {
'';
};
postcss-cli = prev.postcss-cli.override (
oldAttrs:
let
esbuild-version = (lib.findFirst (dep: dep.name == "esbuild") null oldAttrs.dependencies).version;
esbuild-linux-x64 = {
name = "_at_esbuild_slash_esbuild-linux-x64";
packageName = "@esbuild/linux-x64";
version = esbuild-version;
src = fetchurl {
url = "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-${esbuild-version}.tgz";
sha512 = "sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==";
};
};
esbuild-linux-arm64 = {
name = "_at_esbuild_slash_esbuild-linux-arm64";
packageName = "@esbuild/linux-arm64";
version = esbuild-version;
src = fetchurl {
url = "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-${esbuild-version}.tgz";
sha512 = "sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==";
};
};
esbuild-darwin-x64 = {
name = "_at_esbuild_slash_esbuild-darwin-x64";
packageName = "@esbuild/darwin-x64";
version = esbuild-version;
src = fetchurl {
url = "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-${esbuild-version}.tgz";
sha512 = "sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==";
};
};
esbuild-darwin-arm64 = {
name = "_at_esbuild_slash_esbuild-darwin-arm64";
packageName = "@esbuild/darwin-arm64";
version = esbuild-version;
src = fetchurl {
url = "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-${esbuild-version}.tgz";
sha512 = "sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==";
};
};
in
{
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
dependencies =
oldAttrs.dependencies
++ lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) esbuild-linux-x64
++ lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) esbuild-linux-arm64
++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) esbuild-darwin-x64
++ lib.optional (
stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
) esbuild-darwin-arm64;
postInstall = ''
wrapProgram "$out/bin/postcss" \
--prefix NODE_PATH : ${final.postcss}/lib/node_modules \
--prefix NODE_PATH : ${pkgs.autoprefixer}/node_modules
ln -s '${final.postcss}/lib/node_modules/postcss' "$out/lib/node_modules/postcss"
'';
passthru.tests = {
simple-execution = callPackage ./package-tests/postcss-cli.nix {
inherit (final) postcss-cli;
};
};
meta = oldAttrs.meta // {
maintainers = with lib.maintainers; [ Luflosi ];
license = lib.licenses.mit;
};
}
);
pulp = prev.pulp.override {
# tries to install purescript
npmFlags = builtins.toString [ "--ignore-scripts" ];

View File

@ -1,44 +0,0 @@
{ runCommand, postcss-cli }:
let
inherit (postcss-cli) packageName version;
in
runCommand "${packageName}-tests" { meta.timeout = 60; } ''
# get version of installed program and compare with package version
claimed_version="$(${postcss-cli}/bin/postcss --version)"
if [[ "$claimed_version" != "${version}" ]]; then
echo "Error: program version does not match package version ($claimed_version != ${version})"
exit 1
fi
# run basic help command
${postcss-cli}/bin/postcss --help > /dev/null
# basic autoprefixer test
config_dir="$(mktemp -d)"
clean_up() {
rm -rf "$config_dir"
}
trap clean_up EXIT
echo "
module.exports = {
plugins: {
'autoprefixer': { overrideBrowserslist: 'chrome 40' },
},
}
" > "$config_dir/postcss.config.js"
input='a{ user-select: none; }'
expected_output='a{ -webkit-user-select: none; user-select: none; }'
actual_output="$(echo $input | ${postcss-cli}/bin/postcss --no-map --config $config_dir)"
if [[ "$actual_output" != "$expected_output" ]]; then
echo "Error: autoprefixer did not output the correct CSS:"
echo "$actual_output"
echo "!="
echo "$expected_output"
exit 1
fi
# needed for Nix to register the command as successful
touch $out
''

View File

@ -1393,6 +1393,7 @@ mapAliases {
pgroonga = postgresqlPackages.pgroonga;
pgtap = postgresqlPackages.pgtap;
plv8 = postgresqlPackages.plv8;
postcss-cli = throw "postcss-cli has been removed because it was broken"; # added 2025-03-24
postgis = postgresqlPackages.postgis;
tex-match = throw "'tex-match' has been removed due to lack of maintenance upstream. Consider using 'hieroglyphic' instead"; # Added 2024-09-24
texinfo5 = throw "'texinfo5' has been removed from nixpkgs"; # Added 2024-09-10

View File

@ -8671,8 +8671,6 @@ with pkgs;
polar = callPackage ../tools/misc/polar { };
inherit (nodePackages) postcss-cli;
pyprof2calltree = with python3Packages; toPythonApplication pyprof2calltree;
premake3 = callPackage ../development/tools/misc/premake/3.nix { };