Commit 96b0bb65 authored by Robert Schütz's avatar Robert Schütz
Browse files

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
parent 3b27e391
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+0 −1
Original line number Diff line number Diff line
@@ -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";
+0 −1
Original line number Diff line number Diff line
@@ -129,7 +129,6 @@
, "peerflix-server"
, "poor-mans-t-sql-formatter-cli"
, "postcss"
, "postcss-cli"
, "prebuild-install"
, "prettier"
, "pscid"
+0 −89
Original line number Diff line number Diff line
@@ -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";
+0 −69
Original line number Diff line number Diff line
@@ -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" ];
Loading