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