2021-10-04 12:37:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, babashka
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "neil";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.2.63";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "babashka";
|
|
|
|
repo = "neil";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-mcygDOx5yzOW80bv54cPOKl1t443DXFRq4Hb4KYD5e8=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D neil $out/bin/neil
|
|
|
|
wrapProgram $out/bin/neil \
|
2023-07-15 17:15:38 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ babashka ]}"
|
2021-10-04 12:37:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/babashka/neil";
|
|
|
|
description = "A CLI to add common aliases and features to deps.edn-based projects";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = babashka.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ jlesquembre ];
|
|
|
|
};
|
|
|
|
}
|