Unverified Commit ca2edd4a authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

rubyPackages: move env variables into env for structuredAttrs (#502553)

parents b6c385dc 1224274f
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -263,7 +263,9 @@ in
  };

  dep-selector-libgecode = attrs: {
    env = attrs.env or { } // {
      USE_SYSTEM_GECODE = true;
    };
    postInstall = ''
      installPath=$(cat $out/nix-support/gem-meta/install-path)
      sed -i $installPath/lib/dep-selector-libgecode.rb -e 's@VENDORED_GECODE_DIR =.*@VENDORED_GECODE_DIR = "${gecode_3}"@'
@@ -327,8 +329,10 @@ in
  };

  mimemagic = attrs: {
    env = attrs.env or { } // {
      FREEDESKTOP_MIME_TYPES_PATH = "${shared-mime-info}/share/mime/packages/freedesktop.org.xml";
    };
  };

  mini_magick = attrs: {
    postInstall = ''
@@ -1035,7 +1039,9 @@ in
  sassc = attrs: {
    nativeBuildInputs = [ rake ];
    dontBuild = false;
    env = attrs.env or { } // {
      SASS_LIBSASS_PATH = toString libsass;
    };
    postPatch = ''
      substituteInPlace lib/sassc/native.rb \
        --replace 'gem_root = spec.gem_dir' 'gem_root = File.join(__dir__, "../../")'