2021-09-29 09:49:23 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, babashka
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "neil";
|
2024-10-18 06:36:57 +00:00
|
|
|
version = "0.3.68";
|
2021-09-29 09:49:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "babashka";
|
|
|
|
repo = "neil";
|
|
|
|
rev = "v${version}";
|
2024-10-18 06:36:57 +00:00
|
|
|
sha256 = "sha256-ulqVrFsuYvRKxASHI6AqnHkKKdmDVgtivsRIscivcXw=";
|
2021-09-29 09:49:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D neil $out/bin/neil
|
|
|
|
wrapProgram $out/bin/neil \
|
2023-07-02 14:20:18 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ babashka ]}"
|
2021-09-29 09:49:23 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/babashka/neil";
|
|
|
|
description = "CLI to add common aliases and features to deps.edn-based projects";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "neil";
|
2021-09-29 09:49:23 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = babashka.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ jlesquembre ];
|
|
|
|
};
|
|
|
|
}
|