2018-07-20 16:43:03 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, autoreconfHook }:
|
2015-02-14 22:33:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libsass-${version}";
|
2018-12-08 15:34:13 +00:00
|
|
|
version = "3.5.5";
|
2015-02-14 22:33:36 +00:00
|
|
|
|
2015-05-07 14:50:50 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/sass/libsass/archive/${version}.tar.gz";
|
2018-12-08 15:34:13 +00:00
|
|
|
sha256 = "0w6v1xa00jvfyk4b29ir7dfkhiq72anz015gg580bi7x3n7saz28";
|
2015-02-14 22:33:36 +00:00
|
|
|
};
|
|
|
|
|
2019-05-18 12:30:30 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2018-19827.patch";
|
|
|
|
url = "https://github.com/sass/libsass/commit/b21fb9f84096d9927780b86fa90629a096af358d.patch";
|
|
|
|
sha256 = "0ix12x9plmpgs3xda2fjdcykca687h16qfwqr57i5qphjr9vp33l";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-07-20 16:43:03 +01:00
|
|
|
preConfigure = ''
|
2015-05-07 14:50:50 +01:00
|
|
|
export LIBSASS_VERSION=${version}
|
2015-02-14 22:33:36 +00:00
|
|
|
'';
|
|
|
|
|
2015-05-07 14:50:50 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2015-02-14 22:33:36 +00:00
|
|
|
|
2015-05-07 14:50:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-02-14 22:33:36 +00:00
|
|
|
description = "A C/C++ implementation of a Sass compiler";
|
|
|
|
homepage = https://github.com/sass/libsass;
|
2015-05-07 14:50:50 +01:00
|
|
|
license = licenses.mit;
|
2015-06-01 06:27:46 +01:00
|
|
|
maintainers = with maintainers; [ codyopel offline ];
|
2015-05-07 14:50:50 +01:00
|
|
|
platforms = platforms.unix;
|
2015-02-14 22:33:36 +00:00
|
|
|
};
|
|
|
|
}
|