blob: 1d2bd5e7d0bcc45ea464224f8a1babefaf15ceba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ stdenv, fetchgit, nodejs }:
stdenv.mkDerivation rec {
name = "lessc-${version}";
version = "1.4.0";
src = fetchgit {
url = https://github.com/less/less.js.git;
rev = "refs/tags/v${version}";
sha256 = "12nzaz7v1bnqzylh4zm1srrj7w7f45fqj4sihxyg0bknfvfwdc56";
};
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
'';
meta = {
description = "LESS to CSS compiler";
homepage = http://lesscss.org/;
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.linux;
};
}
|