at 23.11-beta 37 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook 2, testers 3}: 4 5stdenv.mkDerivation (finalAttrs: { 6 pname = "libsass"; 7 version = "3.6.5"; # also check sassc for updates 8 9 src = fetchFromGitHub { 10 owner = "sass"; 11 repo = finalAttrs.pname; 12 rev = finalAttrs.version; 13 sha256 = "1cxj6r85d5f3qxdwzxrmkx8z875hig4cr8zsi30w6vj23cyds3l2"; 14 # Remove unicode file names which leads to different checksums on HFS+ 15 # vs. other filesystems because of unicode normalisation. 16 postFetch = '' 17 rm -r $out/test/e2e/unicode-pwd 18 ''; 19 }; 20 21 preConfigure = '' 22 export LIBSASS_VERSION=${finalAttrs.version} 23 ''; 24 25 nativeBuildInputs = [ autoreconfHook ]; 26 27 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 28 29 meta = with lib; { 30 description = "A C/C++ implementation of a Sass compiler"; 31 homepage = "https://github.com/sass/libsass"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ codyopel offline ]; 34 pkgConfigModules = [ "libsass" ]; 35 platforms = platforms.unix; 36 }; 37})