depot/third_party/nixpkgs/pkgs/development/tools/sassc/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
714 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, libsass }:
stdenv.mkDerivation rec {
pname = "sassc";
version = "3.6.2"; # also check libsass for updates
src = fetchFromGitHub {
owner = "sass";
repo = pname;
rev = version;
sha256 = "sha256-jcs3+orRqKt9C3c2FTdeaj4H2rBP74lW3HF8CHSm7lQ=";
};
postPatch = ''
export SASSC_VERSION=${version}
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libsass ];
meta = with lib; {
description = "Front-end for libsass";
homepage = "https://github.com/sass/sassc/";
license = licenses.mit;
mainProgram = "sassc";
maintainers = with maintainers; [ codyopel pjones ];
platforms = platforms.unix;
};
}