Unverified Commit 9d31665a authored by awwpotato's avatar awwpotato
Browse files

clean-css-cli: unbreak, refactor

parent 6cfc2456
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -3,30 +3,29 @@
  buildNpmPackage,
  fetchFromGitHub,
}:

let
buildNpmPackage (finalAttrs: {
  pname = "clean-css-cli";
  version = "5.6.3";

  src = fetchFromGitHub {
    owner = "clean-css";
    repo = "clean-css-cli";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-tsFNcQg55uY2gL5xLLLS6INLlYzbsU6M3hnsYeOFGEw=";
  };
in
buildNpmPackage {
  pname = "clean-css-cli";
  inherit version src;

  npmDepsHash = "sha256-uvI9esVVOE18syHUCJpoiDY+Vh3hJO+GsMOTZSYJaxg=";

  dontNpmBuild = true;

  dontCheckForBrokenSymlinks = true;

  meta = {
    changelog = "https://github.com/clean-css/clean-css-cli/blob/${src.rev}/History.md";
    description = "Command-line interface to the clean-css CSS optimization library";
    homepage = "https://github.com/clean-css/clean-css-cli";
    changelog = "https://github.com/clean-css/clean-css-cli/blob/v${finalAttrs.version}/History.md";
    license = lib.licenses.mit;
    mainProgram = "cleancss";
    maintainers = with lib.maintainers; [ momeemt ];
  };
}
})