2019-05-22 04:29:28 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
2015-02-14 23:33:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-22 04:29:28 +02:00
|
|
|
pname = "libsass";
|
2019-07-02 00:27:56 +02:00
|
|
|
version = "3.6.1";
|
2015-02-14 23:33:36 +01:00
|
|
|
|
2019-05-22 04:29:28 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sass";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-07-02 00:27:56 +02:00
|
|
|
sha256 = "1599j2lbsygy3883x9si7rbad1pkjhl6y72aimaapcv90ga5kxkm";
|
2019-05-22 04:29:28 +02:00
|
|
|
# Remove unicode file names which leads to different checksums on HFS+
|
|
|
|
# vs. other filesystems because of unicode normalisation.
|
|
|
|
extraPostFetch = ''
|
|
|
|
rm -r $out/test/e2e/unicode-pwd
|
|
|
|
'';
|
2015-02-14 23:33:36 +01:00
|
|
|
};
|
|
|
|
|
2018-07-20 17:43:03 +02:00
|
|
|
preConfigure = ''
|
2015-05-07 15:50:50 +02:00
|
|
|
export LIBSASS_VERSION=${version}
|
2015-02-14 23:33:36 +01:00
|
|
|
'';
|
|
|
|
|
2015-05-07 15:50:50 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2015-02-14 23:33:36 +01:00
|
|
|
|
2015-05-07 15:50:50 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-02-14 23:33:36 +01:00
|
|
|
description = "A C/C++ implementation of a Sass compiler";
|
|
|
|
homepage = https://github.com/sass/libsass;
|
2015-05-07 15:50:50 +02:00
|
|
|
license = licenses.mit;
|
2015-06-01 07:27:46 +02:00
|
|
|
maintainers = with maintainers; [ codyopel offline ];
|
2015-05-07 15:50:50 +02:00
|
|
|
platforms = platforms.unix;
|
2015-02-14 23:33:36 +01:00
|
|
|
};
|
|
|
|
}
|