mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
33 lines
852 B
Nix
33 lines
852 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libsass";
|
|
version = "3.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sass";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "074kvacdan85h4qrvsk97575ys9xgkc044gplz3m6vn4a8pcl2rn";
|
|
# Remove unicode file names which leads to different checksums on HFS+
|
|
# vs. other filesystems because of unicode normalisation.
|
|
extraPostFetch = ''
|
|
rm -r $out/test/e2e/unicode-pwd
|
|
'';
|
|
};
|
|
|
|
preConfigure = ''
|
|
export LIBSASS_VERSION=${version}
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
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 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|