Merge pull request #320921 from lelgenio/dart-sass-1.77.6

dart-sass: 1.77.4 -> 1.77.6, chores
This commit is contained in:
h7x4 2024-07-02 18:16:06 +02:00 committed by GitHub
commit 7f01435289
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 42 additions and 41 deletions

View File

@ -1,12 +1,13 @@
{ lib
, fetchFromGitHub
, buildDartApplication
, buf
, protoc-gen-dart
, testers
, dart-sass
, runCommand
, writeText
{
lib,
fetchFromGitHub,
buildDartApplication,
buf,
protoc-gen-dart,
testers,
dart-sass,
runCommand,
writeText,
}:
let
@ -21,13 +22,13 @@ let
in
buildDartApplication rec {
pname = "dart-sass";
version = "1.77.4";
version = "1.77.6";
src = fetchFromGitHub {
owner = "sass";
repo = pname;
rev = version;
hash = "sha256-xHOZDeK6xYnfrb6yih6jzRDZLRvyp0EeKZynEq3A4aI=";
hash = "sha256-GiZbx60HtyFTsargh0UVhjzOwlw3VWkhUEaX0s2ehos=";
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
@ -45,14 +46,6 @@ buildDartApplication rec {
dartCompileFlags = [ "--define=version=${version}" ];
meta = with lib; {
homepage = "https://github.com/sass/dart-sass";
description = "Reference implementation of Sass, written in Dart";
mainProgram = "sass";
license = licenses.mit;
maintainers = with maintainers; [ lelgenio ];
};
passthru = {
inherit embedded-protocol-version embedded-protocol;
updateScript = ./update.sh;
@ -67,21 +60,31 @@ buildDartApplication rec {
expected = writeText "expected" ''
body h1{color:#123}
'';
actual = runCommand "actual"
{
nativeBuildInputs = [ dart-sass ];
base = writeText "base" ''
body {
$color: #123;
h1 {
color: $color;
actual =
runCommand "actual"
{
nativeBuildInputs = [ dart-sass ];
base = writeText "base" ''
body {
$color: #123;
h1 {
color: $color;
}
}
}
'';
}
''
dart-sass --style=compressed $base > $out
'';
} ''
dart-sass --style=compressed $base > $out
'';
};
};
};
meta = {
homepage = "https://github.com/sass/dart-sass";
description = "Reference implementation of Sass, written in Dart";
mainProgram = "sass";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lelgenio ];
};
}

View File

@ -674,31 +674,31 @@
"dependency": "direct dev",
"description": {
"name": "test",
"sha256": "d11b55850c68c1f6c0cf00eabded4e66c4043feaf6c0d7ce4a36785137df6331",
"sha256": "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.25.5"
"version": "1.25.7"
},
"test_api": {
"dependency": "transitive",
"description": {
"name": "test_api",
"sha256": "2419f20b0c8677b2d67c8ac4d1ac7372d862dc6c460cdbb052b40155408cd794",
"sha256": "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.7.1"
"version": "0.7.2"
},
"test_core": {
"dependency": "transitive",
"description": {
"name": "test_core",
"sha256": "4d070a6bc36c1c4e89f20d353bfd71dc30cdf2bd0e14349090af360a029ab292",
"sha256": "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.6.2"
"version": "0.6.4"
},
"test_descriptor": {
"dependency": "direct dev",
@ -754,11 +754,11 @@
"dependency": "transitive",
"description": {
"name": "vm_service",
"sha256": "360c4271613beb44db559547d02f8b0dc044741d0eeb9aa6ccdb47e8ec54c63a",
"sha256": "f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "14.2.3"
"version": "14.2.4"
},
"watcher": {
"dependency": "direct main",

View File

@ -40232,8 +40232,6 @@ with pkgs;
dart = callPackage ../development/compilers/dart { };
dart-sass = callPackage ../development/tools/misc/dart-sass { };
pub2nix = recurseIntoAttrs (callPackage ../build-support/dart/pub2nix { });
buildDartApplication = callPackage ../build-support/dart/build-dart-application { };