{ lib , fetchFromGitHub , buildDartApplication , buf , protoc-gen-dart }: let sass-language = fetchFromGitHub { owner = "sass"; repo = "sass"; rev = "refs/tags/embedded-protocol-2.0.0"; hash = "sha256-3qk3XbI/DpNj4oa/3ar5hqEY8LNmQsokinuKt4xV7ck="; }; in buildDartApplication rec { pname = "dart-sass"; version = "1.63.3"; src = fetchFromGitHub { owner = "sass"; repo = pname; rev = version; hash = "sha256-PBFBepG7b5M9LKSQOp7+mVhtwSLgQzUTu3i1055uNBk="; }; pubspecLockFile = ./pubspec.lock; vendorHash = "sha256-ciJUjkItnwzKH6k8a5zxIbARQAEfg/GJEsKfSaygsXU="; nativeBuildInputs = [ buf protoc-gen-dart ]; preConfigure = '' mkdir -p build ln -s ${sass-language} build/language HOME="$TMPDIR" buf generate ''; dartCompileFlags = [ "--define=version=${version}" ]; meta = with lib; { homepage = "https://github.com/sass/dart-sass"; description = "The reference implementation of Sass, written in Dart"; mainProgram = "sass"; license = licenses.mit; maintainers = with maintainers; [ lelgenio ]; }; }