at v206 35 lines 1.1 kB view raw
1{ stdenv, fetchurl, nodejs }: 2 3stdenv.mkDerivation rec { 4 version = "0.10.0"; 5 name = "csslint-${version}"; 6 7 src = fetchurl { 8 url = "http://registry.npmjs.org/csslint/-/${name}.tgz"; 9 sha256 = "1gq2x0pf2p4jhccvn3y3kjhm1lmb4jsfdbzjdh924w8m3sr9jdid"; 10 }; 11 12 # node is the interpreter used to run this script 13 buildInputs = [ nodejs ]; 14 15 installPhase = '' 16 sed -i "s/path\.join/path\.resolve/g" cli.js # fixes csslint issue #167 17 mkdir -p $out/bin; 18 cp -r * $out/bin 19 mv $out/bin/cli.js $out/bin/csslint 20 ''; 21 22 meta = with stdenv.lib; { 23 description = "checks CSS for syntax errors and other problems"; 24 longDescription = '' 25 CSSLint is a tool to help point out problems with your CSS 26 code. It does basic syntax checking as well as applying a set of 27 rules to the code that look for problematic patterns or signs of 28 inefficiency. The rules are all pluggable, so you can easily 29 write your own or omit ones you don't want. ''; 30 homepage = http://nodejs.org; 31 license = licenses.bsd2; 32 maintainers = [ maintainers.goibhniu ]; 33 platforms = platforms.linux; 34 }; 35}