mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 21:50:43 -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,
|
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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue