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
948 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-unstable-2024-05-14";
2023-09-29 17:54:16 +00:00
src = fetchFromGitHub {
owner = "nim-lang";
repo = "nimble";
rev = "f8bd7b5fa6ea7a583b411b5959b06e6b5eb23667";
hash = "sha256-aRDaucD6wOUPtXLIrahvK0vBfurdgFrk+swzqzMA09w=";
};
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";
};
}
)