nimble v0.16.3 proper

This commit is contained in:
Daylin Morgan 2024-11-22 16:39:29 -06:00
parent cdb3cc4eb8
commit 8fa461c214
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -1,8 +1,11 @@
{
lib,
fetchFromGitHub,
buildNimPackage,
# deps
openssl,
nim,
makeWrapper,
}:
buildNimPackage (finalAttrs: {
@ -15,11 +18,23 @@ buildNimPackage (finalAttrs: {
hash = "sha256-1tO/6sKPjmu9B6/cF00DeY/mnUHi2Y+hTEZ3WCqKoGw=";
fetchSubmodules = true;
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ openssl ];
doCheck = false;
# localPassC needed from zippy since name mangling on nix is broken
nimFlags = [
''--passC:"-msse4.1 -mpclmul"''
];
})
nimFlags = [ "--define:git_revision_override=${finalAttrs.src.rev}" ];
doCheck = false; # it works on their machine
postInstall = ''
wrapProgram $out/bin/nimble \
--suffix PATH : ${lib.makeBinPath [ nim ]}
'';
meta = {
description = "Package manager for the Nim programming language";
homepage = "https://github.com/nim-lang/nimble";
license = lib.licenses.bsd3;
mainProgram = "nimble";
};
}
)