diff --git a/pkgs/by-name/ni/nim-2_0/package.nix b/pkgs/by-name/ni/nim-2_0/package.nix new file mode 100644 index 000000000000..c03953527578 --- /dev/null +++ b/pkgs/by-name/ni/nim-2_0/package.nix @@ -0,0 +1,12 @@ +{ + 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; +} diff --git a/pkgs/by-name/ni/nim-unwrapped-2_0/package.nix b/pkgs/by-name/ni/nim-unwrapped-2_0/package.nix new file mode 100644 index 000000000000..232d4dcbfac7 --- /dev/null +++ b/pkgs/by-name/ni/nim-unwrapped-2_0/package.nix @@ -0,0 +1,27 @@ +{ + 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) + ); + } +)