2021-10-04 12:37:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, babashka
|
2022-09-09 14:08:57 +00:00
|
|
|
, jdk
|
2021-10-04 12:37:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "neil";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.1.45";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "babashka";
|
|
|
|
repo = "neil";
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-QEeJWR4aBx1DsXjlTanhDSQn91I9JzEitU+Az+wTVFY=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D neil $out/bin/neil
|
|
|
|
wrapProgram $out/bin/neil \
|
2022-09-09 14:08:57 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ babashka jdk ]}"
|
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 ];
|
|
|
|
};
|
|
|
|
}
|