9c234ddcef
No real changes outside of the security patch we were already using. Changes: https://github.com/sass/libsass/compare/3.6.5...3.6.6
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, testers
|
|
|
|
# for passthru.tests
|
|
, gtk3
|
|
, gtk4
|
|
, sassc
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libsass";
|
|
version = "3.6.6"; # also check sassc for updates
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sass";
|
|
repo = finalAttrs.pname;
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-FkLL3OAJXDptRQY6ZkYbss2pcc40f/wasIvEIyHRQFo=";
|
|
# Remove unicode file names which leads to different checksums on HFS+
|
|
# vs. other filesystems because of unicode normalisation.
|
|
postFetch = ''
|
|
rm -r $out/test/e2e/unicode-pwd
|
|
'';
|
|
};
|
|
|
|
preConfigure = ''
|
|
export LIBSASS_VERSION=${finalAttrs.version}
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
passthru.tests = {
|
|
inherit gtk3 gtk4 sassc;
|
|
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A C/C++ implementation of a Sass compiler";
|
|
homepage = "https://github.com/sass/libsass";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ codyopel offline ];
|
|
pkgConfigModules = [ "libsass" ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|