Commit 4ad5948e authored by Emery Hemingway's avatar Emery Hemingway
Browse files

nim-2_0: init at 2.0.10

Fix 350913
parent 9c7030ae
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  nim-unwrapped-2_0,
  nim-2_2,
}:

nim-2_2.passthru.wrapNim {
  nimUnwrapped = nim-unwrapped-2_0;
  inherit (nim-2_2) patches;
}
+27 −0
Original line number Diff line number Diff line
{
  lib,
  fetchurl,
  nim-unwrapped-1,
  nim-unwrapped-2_2,
}:

nim-unwrapped-2_2.overrideAttrs (
  finalAttrs: previousAttrs: {
    version = "2.0.10";
    src = fetchurl {
      url = "https://nim-lang.org/download/nim-${finalAttrs.version}.tar.xz";
      hash = "sha256-8UVDwjOpLHub0np9mEx4yfnBvXMyAwrBa+fFQMdbDqA=";
    };
    patches = lib.lists.unique (
      builtins.filter (
        p:
        builtins.elem (builtins.baseNameOf p) [
          "NIM_CONFIG_DIR.patch"
          "nixbuild.patch"
          "extra-mangling.patch"
          "openssl.patch"
        ]
      ) (nim-unwrapped-1.patches ++ nim-unwrapped-2_2.patches)
    );
  }
)