mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 06:01:19 +00:00
4ad5948e8a
Fix 350913
28 lines
649 B
Nix
28 lines
649 B
Nix
{
|
|
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)
|
|
);
|
|
}
|
|
)
|