5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
30 lines
764 B
Nix
30 lines
764 B
Nix
{ lib, buildNimPackage, fetchFromGitHub, nim, makeWrapper }:
|
|
|
|
buildNimPackage (final: prev: {
|
|
pname = "nimble";
|
|
version = "0.14.2";
|
|
|
|
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 ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Package manager for the Nim programming language";
|
|
homepage = "https://github.com/nim-lang/nimble";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ehmry ];
|
|
mainProgram = "nimble";
|
|
};
|
|
})
|