File tree Expand file tree Collapse file tree 2 files changed +42
-21
lines changed Expand file tree Collapse file tree 2 files changed +42
-21
lines changed Original file line number Diff line number Diff line change 1
1
{
2
+ description = "" ;
3
+
2
4
inputs = {
3
- nixpkgs . url = "github:nixos/nixpkgs/nixos -unstable" ;
5
+ nixpkgs . url = "github:nixos/nixpkgs/nixpkgs -unstable" ;
4
6
} ;
5
7
6
8
outputs =
7
- { nixpkgs , ... } :
9
+ { self , nixpkgs , ... } :
8
10
let
9
11
systems = [
10
12
"x86_64-linux"
11
13
"aarch64-linux"
12
14
"x86_64-darwin"
13
15
"aarch64-darwin"
14
16
] ;
15
- forAllSystems =
16
- function : nixpkgs . lib . genAttrs systems ( system : function ( import nixpkgs { inherit system ; } ) ) ;
17
+ forAllSystems = f : nixpkgs . lib . genAttrs systems ( system : f ( import nixpkgs { inherit system ; } ) ) ;
17
18
in
18
19
{
19
- devShells = forAllSystems ( pkgs : {
20
- default = pkgs . mkShell {
21
- packages = with pkgs ; [
22
- neovim
23
- fd
20
+ apps = forAllSystems (
21
+ pkgs :
22
+ let
23
+ runtimeDeps = with pkgs ; [
24
+ gcc
25
+ nixd
26
+ lua-language-server
24
27
ripgrep
28
+ fd
25
29
] ;
26
- shellHook = ''
27
- [ -d ~/.config/nvim ] && mv ~/.config/nvim ~/.config/nvim.before-pwnvim || true
28
- echo "Cloning, Syncing Neovim plugins ..."
29
- git clone --depth=1 https://github.com/pwnwriter/pwnvim ~/.config/nvim
30
- nvim --headless +"Lazy! sync" +qa
31
- '' ;
32
30
33
- } ;
34
- } ) ;
31
+ nvim = pkgs . wrapNeovimUnstable pkgs . neovim-unwrapped (
32
+ pkgs . neovimUtils . makeNeovimConfig {
33
+
34
+ customRC = ''
35
+ set runtimepath^=${ ./. }
36
+ source ${ ./. } /init.lua
37
+ '' ;
38
+ }
39
+ // {
40
+ wrapperArgs = [
41
+ "--prefix"
42
+ "PATH"
43
+ ":"
44
+ "${ pkgs . lib . makeBinPath runtimeDeps } "
45
+ ] ;
46
+ }
47
+ ) ;
48
+ in
49
+ {
50
+ default = {
51
+ type = "app" ;
52
+ program = "${ nvim } /bin/nvim" ;
53
+ } ;
54
+ }
55
+ ) ;
35
56
} ;
36
57
}
You can’t perform that action at this time.
0 commit comments