Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 27 lines 430 B view raw
1{ 2 lib, 3 stdenv, 4 makeWrapper, 5 lessc, 6 plugins ? [ ], 7}: 8 9stdenv.mkDerivation { 10 pname = "lessc-with-plugins"; 11 nativeBuildInputs = [ makeWrapper ]; 12 buildPhase = '' 13 mkdir -p $out/bin 14 15 makeWrapper "${lib.getExe lessc}" "$out/bin/lessc" \ 16 --prefix NODE_PATH : "${lib.makeSearchPath "/lib/node_modules" plugins}" 17 ''; 18 19 doUnpack = false; 20 21 inherit (lessc) 22 version 23 src 24 passthru 25 meta 26 ; 27}