nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

libsass: Add `meta.pkgConfigModules` and test

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