nixpkgs/pkgs/by-name/ni/nimble/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
910 B
Nix
Raw Normal View History

{
lib,
buildNimPackage,
fetchFromGitHub,
nim,
openssl,
makeWrapper,
}:
2023-09-29 17:54:16 +00:00
buildNimPackage (
final: prev: {
pname = "nimble";
version = "0.16.2";
2023-09-29 17:54:16 +00:00
src = fetchFromGitHub {
owner = "nim-lang";
repo = "nimble";
rev = "v${final.version}";
hash = "sha256-MVHf19UbOWk8Zba2scj06PxdYYOJA6OXrVyDQ9Ku6Us=";
};
2023-10-31 16:37:01 +00:00
lockFile = ./lock.json;
2023-09-29 17:54:16 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ openssl ];
2023-09-29 17:54:16 +00:00
nimFlags = [ "--define:git_revision_override=${final.src.rev}" ];
2023-09-29 17:54:16 +00:00
doCheck = false; # it works on their machine
2023-09-29 17:54:16 +00:00
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";
};
}
)