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.

32 lines
738 B
Nix
Raw Normal View History

2023-09-29 19:54:16 +02:00
{ lib, buildNimPackage, fetchFromGitHub, nim, makeWrapper }:
buildNimPackage (final: prev: {
pname = "nimble";
version = "0.14.2";
2023-10-31 17:37:01 +01:00
requiredNimVersion = 1;
2023-09-29 19:54:16 +02:00
src = fetchFromGitHub {
owner = "nim-lang";
repo = "nimble";
rev = "v${final.version}";
hash = "sha256-8b5yKvEl7c7wA/8cpdaN2CSvawQJzuRce6mULj3z/mI=";
};
nativeBuildInputs = [ makeWrapper ];
doCheck = false; # it works on their machine
postInstall = ''
wrapProgram $out/bin/nimble \
--suffix PATH : ${lib.makeBinPath [ nim ]}
'';
2023-10-31 17:37:01 +01:00
meta = {
2023-09-29 19:54:16 +02:00
description = "Package manager for the Nim programming language";
homepage = "https://github.com/nim-lang/nimble";
2023-10-31 17:37:01 +01:00
license = lib.licenses.bsd3;
2023-09-29 19:54:16 +02:00
mainProgram = "nimble";
};
})