2013-07-01 15:39:39 +02:00
|
|
|
{ stdenv, fetchgit, nodejs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lessc-${version}";
|
2014-11-25 18:45:59 +01:00
|
|
|
version = "1.7.5"; # Upgrade to > 2.x breaks twitter-bootstrap
|
2013-07-01 15:39:39 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://github.com/less/less.js.git;
|
|
|
|
rev = "refs/tags/v${version}";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "1af1xbh1pjpfsx0jp69syji6w9750nigk652yk46jrja3z1scb4s";
|
2013-07-01 15:39:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/lib
|
|
|
|
cp -r $src/bin/* $out/bin/
|
|
|
|
cp -r $src/lib/* $out/lib/
|
|
|
|
substituteInPlace $out/bin/lessc --replace "/usr/bin/env node" ${nodejs}/bin/node
|
|
|
|
'';
|
|
|
|
|
2014-09-25 18:19:19 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-07-01 15:39:39 +02:00
|
|
|
description = "LESS to CSS compiler";
|
|
|
|
homepage = http://lesscss.org/;
|
2014-09-25 18:19:19 +02:00
|
|
|
license = licenses.asl20;
|
2016-07-26 03:32:53 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-09-25 18:19:19 +02:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2013-07-01 15:39:39 +02:00
|
|
|
};
|
|
|
|
}
|