mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 09:20:44 -06:00
nimble v0.16.3 proper
This commit is contained in:
parent
cdb3cc4eb8
commit
8fa461c214
1 changed files with 22 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
buildInputs = [ openssl ];
|
||||
doCheck = false;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
# 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";
|
||||
};
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue