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