nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 makeWrapper,
6 babashka,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "neil";
11 version = "0.3.68";
12
13 src = fetchFromGitHub {
14 owner = "babashka";
15 repo = "neil";
16 rev = "v${version}";
17 sha256 = "sha256-ulqVrFsuYvRKxASHI6AqnHkKKdmDVgtivsRIscivcXw=";
18 };
19
20 nativeBuildInputs = [ makeWrapper ];
21
22 dontBuild = true;
23
24 installPhase = ''
25 install -D neil $out/bin/neil
26 wrapProgram $out/bin/neil \
27 --prefix PATH : "${lib.makeBinPath [ babashka ]}"
28 '';
29
30 meta = with lib; {
31 homepage = "https://github.com/babashka/neil";
32 description = "CLI to add common aliases and features to deps.edn-based projects";
33 mainProgram = "neil";
34 license = licenses.mit;
35 platforms = babashka.meta.platforms;
36 maintainers = with maintainers; [ jlesquembre ];
37 };
38}