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, fetchFromGitHub,
buildNimPackage, buildNimPackage,
# deps # deps
openssl, openssl,
nim,
makeWrapper,
}: }:
buildNimPackage (finalAttrs: { buildNimPackage (finalAttrs: {
@ -15,11 +18,23 @@ buildNimPackage (finalAttrs: {
hash = "sha256-1tO/6sKPjmu9B6/cF00DeY/mnUHi2Y+hTEZ3WCqKoGw="; hash = "sha256-1tO/6sKPjmu9B6/cF00DeY/mnUHi2Y+hTEZ3WCqKoGw=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
buildInputs = [ openssl ]; nativeBuildInputs = [ makeWrapper ];
doCheck = false; buildInputs = [ openssl ];
# localPassC needed from zippy since name mangling on nix is broken nimFlags = [ "--define:git_revision_override=${finalAttrs.src.rev}" ];
nimFlags = [
''--passC:"-msse4.1 -mpclmul"'' 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";
};
}
)