lol
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, libsass }:
2
3stdenv.mkDerivation rec {
4 pname = "sassc";
5 version = "3.6.2"; # also check libsass for updates
6
7 src = fetchFromGitHub {
8 owner = "sass";
9 repo = pname;
10 rev = version;
11 sha256 = "sha256-jcs3+orRqKt9C3c2FTdeaj4H2rBP74lW3HF8CHSm7lQ=";
12 };
13
14 postPatch = ''
15 export SASSC_VERSION=${version}
16 '';
17
18 nativeBuildInputs = [ autoreconfHook ];
19
20 buildInputs = [ libsass ];
21
22 meta = with lib; {
23 description = "A front-end for libsass";
24 homepage = "https://github.com/sass/sassc/";
25 license = licenses.mit;
26 maintainers = with maintainers; [ codyopel pjones ];
27 platforms = platforms.unix;
28 };
29}