mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
00df29c471
Compiles LESS to CSS
29 lines
703 B
Nix
29 lines
703 B
Nix
{ 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;
|
|
};
|
|
}
|