2024-09-14 11:14:03 -05:00
|
|
|
{
|
2024-11-22 16:39:29 -06:00
|
|
|
lib,
|
2024-09-14 11:14:03 -05:00
|
|
|
fetchFromGitHub,
|
|
|
|
buildNimPackage,
|
|
|
|
# deps
|
|
|
|
openssl,
|
2024-11-22 16:39:29 -06:00
|
|
|
nim,
|
|
|
|
makeWrapper,
|
2024-09-14 11:14:03 -05:00
|
|
|
|
|
|
|
}:
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
|
|
pname = "nimble";
|
2024-11-15 09:24:51 -06:00
|
|
|
version = "0.16.3";
|
2024-09-14 11:14:03 -05:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nim-lang";
|
|
|
|
repo = "nimble";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-11-15 09:24:51 -06:00
|
|
|
hash = "sha256-1tO/6sKPjmu9B6/cF00DeY/mnUHi2Y+hTEZ3WCqKoGw=";
|
|
|
|
fetchSubmodules = true;
|
2024-09-14 11:14:03 -05:00
|
|
|
};
|
2024-11-22 16:39:29 -06:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ openssl ];
|
2024-11-15 09:24:51 -06:00
|
|
|
|
2024-11-22 16:39:29 -06:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
)
|