From b9b360217c9f8e42cc8a71151e3c61cb2b41b076 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Mon, 26 Jun 2023 17:44:57 +1200 Subject: [PATCH 1/2] ruby-modules/gem-config: Add fix for sass-embedded --- pkgs/development/ruby-modules/gem-config/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 22794da25167..ddcad32eda6e 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -25,7 +25,7 @@ , cairo, re2, rake, gobject-introspection, gdk-pixbuf, zeromq, czmq, graphicsmagick, libcxx , file, libvirt, glib, vips, taglib, libopus, linux-pam, libidn, protobuf, fribidi, harfbuzz , bison, flex, pango, python3, patchelf, binutils, freetds, wrapGAppsHook, atk -, bundler, libsass, libexif, libselinux, libsepol, shared-mime-info, libthai, libdatrie +, bundler, libsass, dart-sass, libexif, libselinux, libsepol, shared-mime-info, libthai, libdatrie , CoreServices, DarwinTools, cctools, libtool, discount, exiv2, libmaxminddb, libyaml , autoSignDarwinBinariesHook, fetchpatch }@args: @@ -706,6 +706,16 @@ in buildFlags = [ "--disable-lto" ]; }); + sass-embedded = attrs: { + # Patch the Rakefile to use our dart-sass and not try to fetch anything. + dontBuild = false; + postPatch = '' + substituteInPlace ext/sass/Rakefile \ + --replace \'dart-sass/sass\' \'${dart-sass}/bin/sass\' \ + --replace ' => %w[dart-sass]' "" + ''; + }; + scrypt = attrs: lib.optionalAttrs stdenv.isDarwin { dontBuild = false; postPatch = '' From 7ce443a48a06c0f2960317be36709a8c64c9f598 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Sun, 25 Jun 2023 21:16:17 +1200 Subject: [PATCH 2/2] rubyPackages.webrick: init at 1.8.1 --- pkgs/top-level/ruby-packages.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/top-level/ruby-packages.nix b/pkgs/top-level/ruby-packages.nix index a47b78c461b7..3c610c1a8cc3 100644 --- a/pkgs/top-level/ruby-packages.nix +++ b/pkgs/top-level/ruby-packages.nix @@ -3619,6 +3619,16 @@ }; version = "7.0.0"; }; + webrick = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "13qm7s0gr2pmfcl7dxrmq38asaza4w0i2n9my4yzs499j731wh8r"; + type = "gem"; + }; + version = "1.8.1"; + }; websocket-driver = { dependencies = ["websocket-extensions"]; groups = ["default"];