nixpkgs/pkgs/development/libraries/libsass/default.nix

34 lines
938 B
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, autoreconfHook }:
2015-02-14 22:33:36 +00:00
stdenv.mkDerivation rec {
name = "libsass-${version}";
version = "3.5.4";
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";
sha256 = "0w47hvzmbdpbjx8j83wn8dwcvglpab8abkszf9xfzrpqvb6wnqaz";
2015-02-14 22:33:36 +00:00
};
patches = [
# CVE-2018-11693, is in master but no release yet
(fetchpatch {
url = "https://github.com/sass/libsass/commit/af0e12cdf09d43dbd1fc11e3f64b244277cc1a1e.patch";
sha256 = "1y8yvjvvz91lcr1kpq2pw8729xhdgp15mbldcw392pfzdlliwdyl";
})
];
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
};
}