File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed
Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ makeWrapper ,
5+ bash ,
6+ curl ,
7+ jq ,
8+ git ,
9+ gnumake ,
10+ cmake ,
11+ } :
12+
13+ stdenv . mkDerivation {
14+ pname = "nvimv" ;
15+ version = "0.1.0" ;
16+
17+ src = ./. ;
18+
19+ nativeBuildInputs = [ makeWrapper ] ;
20+
21+ buildInputs = [
22+ bash
23+ curl
24+ jq
25+ git
26+ gnumake
27+ cmake
28+ ] ;
29+
30+ dontConfigure = true ;
31+ dontBuild = true ;
32+
33+ installPhase = ''
34+ runHook preInstall
35+
36+ mkdir -p $out/bin
37+ cp nvimv $out/bin/nvimv
38+ chmod +x $out/bin/nvimv
39+
40+ wrapProgram $out/bin/nvimv \
41+ --prefix PATH : ${
42+ lib . makeBinPath [
43+ bash
44+ curl
45+ jq
46+ git
47+ gnumake
48+ cmake
49+ ]
50+ }
51+
52+ runHook postInstall
53+ '' ;
54+
55+ meta = with lib ; {
56+ description = "A version manager for Neovim" ;
57+ homepage = "https://github.com/example/nvimv" ;
58+ license = licenses . mit ;
59+ maintainers = [ ] ;
60+ platforms = platforms . unix ;
61+ } ;
62+ }
You can’t perform that action at this time.
0 commit comments