mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
clean-css-cli: unbreak, refactor
This commit is contained in:
parent
6cfc245621
commit
9d31665a93
1 changed files with 8 additions and 9 deletions
|
@ -3,30 +3,29 @@
|
||||||
buildNpmPackage,
|
buildNpmPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
}:
|
}:
|
||||||
|
buildNpmPackage (finalAttrs: {
|
||||||
let
|
pname = "clean-css-cli";
|
||||||
version = "5.6.3";
|
version = "5.6.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "clean-css";
|
owner = "clean-css";
|
||||||
repo = "clean-css-cli";
|
repo = "clean-css-cli";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-tsFNcQg55uY2gL5xLLLS6INLlYzbsU6M3hnsYeOFGEw=";
|
hash = "sha256-tsFNcQg55uY2gL5xLLLS6INLlYzbsU6M3hnsYeOFGEw=";
|
||||||
};
|
};
|
||||||
in
|
|
||||||
buildNpmPackage {
|
|
||||||
pname = "clean-css-cli";
|
|
||||||
inherit version src;
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-uvI9esVVOE18syHUCJpoiDY+Vh3hJO+GsMOTZSYJaxg=";
|
npmDepsHash = "sha256-uvI9esVVOE18syHUCJpoiDY+Vh3hJO+GsMOTZSYJaxg=";
|
||||||
|
|
||||||
dontNpmBuild = true;
|
dontNpmBuild = true;
|
||||||
|
|
||||||
|
dontCheckForBrokenSymlinks = true;
|
||||||
|
|
||||||
meta = {
|
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";
|
description = "Command-line interface to the clean-css CSS optimization library";
|
||||||
homepage = "https://github.com/clean-css/clean-css-cli";
|
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;
|
license = lib.licenses.mit;
|
||||||
mainProgram = "cleancss";
|
mainProgram = "cleancss";
|
||||||
maintainers = with lib.maintainers; [ momeemt ];
|
maintainers = with lib.maintainers; [ momeemt ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue