1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

nim-2_0: init at 2.0.10

Fix 350913
This commit is contained in:
Emery Hemingway 2024-10-27 19:45:37 +00:00
parent 9c7030ae57
commit 4ad5948e8a
2 changed files with 39 additions and 0 deletions

View file

@ -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;
}

View file

@ -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)
);
}
)