1
0
Fork 0

neovim: Install directly from neovim repo flake

This commit is contained in:
Daniel Kempkens 2023-05-03 20:06:30 +02:00
parent e384f84080
commit ed43dd2011
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
10 changed files with 45 additions and 71 deletions

View file

@ -20,6 +20,7 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build '.#nixosConfigurations.attic.pkgs.attic-server' - run: nix build '.#nixosConfigurations.attic.pkgs.attic-server'
- run: nix build '.#nixosConfigurations.attic.pkgs.attic-client' - run: nix build '.#nixosConfigurations.attic.pkgs.attic-client'
- run: nix build '.#nixosConfigurations.attic.pkgs.neovim-nightly'
build-arm64-linux: build-arm64-linux:
runs-on: buildjet-2vcpu-ubuntu-2204-arm runs-on: buildjet-2vcpu-ubuntu-2204-arm
@ -33,3 +34,4 @@ jobs:
name: nifoc name: nifoc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build '.#nixosConfigurations.adsb-antenna.pkgs.attic-client' - run: nix build '.#nixosConfigurations.adsb-antenna.pkgs.attic-client'
- run: nix build '.#nixosConfigurations.adsb-antenna.pkgs.neovim-nightly'

View file

@ -113,22 +113,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1667395993, "lastModified": 1667395993,
@ -183,17 +167,16 @@
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
"nixpkgs": [ "nixpkgs": [
"neovim-nightly-overlay",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1682581904, "lastModified": 1683121765,
"narHash": "sha256-9P4T2erXXrPxXTTLgD29U/IdKCOYqP4xbwdYswtVBA8=", "narHash": "sha256-P54glCHzWk9ZsONGwQRTNB0rJdH/FbVCxNwDG9DnC4Y=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "d321deb4a9b05e9d81b79ac166274f4a6e7981bf", "rev": "39caf86e8aa0f6bd803b538b2d864f7dc94fc8dd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -203,29 +186,6 @@
"type": "github" "type": "github"
} }
}, },
"neovim-nightly-overlay": {
"inputs": {
"flake-compat": "flake-compat_2",
"neovim-flake": "neovim-flake",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1682583188,
"narHash": "sha256-CqXxDWqRLc7liA8cwafV4TQ5ggxx3PTlvDs8CUuF5HY=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "c57746e2b9e3b42c0be9d9fd1d765f245c3827b7",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "c57746e2b9e3b42c0be9d9fd1d765f245c3827b7",
"type": "github"
}
},
"nifoc-overlay": { "nifoc-overlay": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -233,11 +193,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1683015695, "lastModified": 1683128179,
"narHash": "sha256-ExzgdrZ8QAleNO2Xh20zXZPYhIgeznb/FETHMwqvI0M=", "narHash": "sha256-Cg2NkFpTbnGRawMZZRzD18tx00wEGLBGEekYpaV7CIw=",
"owner": "nifoc", "owner": "nifoc",
"repo": "nix-overlay", "repo": "nix-overlay",
"rev": "26d2cae3181bca2a27d939664bd83eee91d776fc", "rev": "84fc7286b0fd228615e205bcb0947055c310611c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -284,7 +244,7 @@
"attic": "attic", "attic": "attic",
"darwin": "darwin", "darwin": "darwin",
"home-manager": "home-manager", "home-manager": "home-manager",
"neovim-nightly-overlay": "neovim-nightly-overlay", "neovim-flake": "neovim-flake",
"nifoc-overlay": "nifoc-overlay", "nifoc-overlay": "nifoc-overlay",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }

View file

@ -23,8 +23,8 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
neovim-nightly-overlay = { neovim-flake = {
url = "github:nix-community/neovim-nightly-overlay?rev=c57746e2b9e3b42c0be9d9fd1d765f245c3827b7"; url = "github:neovim/neovim?dir=contrib";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };

View file

@ -3,7 +3,11 @@
{ {
programs.neovim = { programs.neovim = {
enable = true; enable = true;
package = pkgs.neovim-nightly; package = pkgs.neovim-nightly.overrideAttrs (oa: {
nativeBuildInputs = oa.nativeBuildInputs ++ [
pkgs.liblpeg-darwin
];
});
defaultEditor = true; defaultEditor = true;

View file

@ -107,12 +107,12 @@ in
}; };
nvim-treesitter = buildVimPluginFrom2Nix { nvim-treesitter = buildVimPluginFrom2Nix {
pname = "nvim-treesitter"; pname = "nvim-treesitter";
version = "2023-05-02"; version = "2023-05-03";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nvim-treesitter"; owner = "nvim-treesitter";
repo = "nvim-treesitter"; repo = "nvim-treesitter";
rev = "e2cf8977fda35ad666d7b431b0254d8da710968a"; rev = "bff7115bf89a553e4a1a120eb69b99486564af4c";
sha256 = "0bvifdi5clly0sm0mi9nrnydiif7xiz52cym94mpv362lkam00ys"; sha256 = "1l20an16vxxgdm3mvni6g51lq6xsxkls68hplv7mwp7k66zxxfrp";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -220,12 +220,12 @@ in
}; };
nvim-lspconfig = buildVimPluginFrom2Nix { nvim-lspconfig = buildVimPluginFrom2Nix {
pname = "nvim-lspconfig"; pname = "nvim-lspconfig";
version = "2023-05-02"; version = "2023-05-03";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "neovim"; owner = "neovim";
repo = "nvim-lspconfig"; repo = "nvim-lspconfig";
rev = "05689b96fdad33fb01d4968089760d6886a65058"; rev = "3bd4ca412982afa6f88bb7ef890660cee51c3e58";
sha256 = "0w72qki10pl5hbxxydhi4gkk0w1whlq1k47aw5ddqmmvqp13sya7"; sha256 = "1rnzqr5wnk0zfi85dnrqccqs7jrg8ibd9bqzj4qqsqz40l6bli1s";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -286,12 +286,12 @@ in
}; };
comment-nvim = buildVimPluginFrom2Nix { comment-nvim = buildVimPluginFrom2Nix {
pname = "comment.nvim"; pname = "comment.nvim";
version = "2023-04-28"; version = "2023-05-03";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "numtostr"; owner = "numtostr";
repo = "comment.nvim"; repo = "comment.nvim";
rev = "38d3b7eb553872d8866f14a0dd4fe84126068fce"; rev = "e1fe53117aab24c378d5e6deaad786789c360123";
sha256 = "1d1a2c864y24lnr8h1xsg9krrk9604vy5mawjccn2fzq9g5vg6z5"; sha256 = "13ypypkb63j8spg9av9i7n0yp0g4d1hwrym0f9659r0kxmzy9h88";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -319,12 +319,12 @@ in
}; };
nvim-cmp = buildVimPluginFrom2Nix { nvim-cmp = buildVimPluginFrom2Nix {
pname = "nvim-cmp"; pname = "nvim-cmp";
version = "2023-05-01"; version = "2023-05-03";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hrsh7th"; owner = "hrsh7th";
repo = "nvim-cmp"; repo = "nvim-cmp";
rev = "c3f7c54f6efed83b5657b1cf2e2a9bb7c121c6b4"; rev = "bd168a2f86f01f2a348e5f4ac2980943737ff459";
sha256 = "10d1va35izy4cxbpsyh5h2p5jqxwlwpb5pafhb8fw72rqf02lda7"; sha256 = "18bzn6xklnl02d8xayx4m501nz117wfbcc8m174kmg6nl6l4yh88";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };

View file

@ -6,7 +6,7 @@ let
overlay-x86 = _: _: { pkgs-x86 = import nixpkgs { system = "x86_64-darwin"; }; }; overlay-x86 = _: _: { pkgs-x86 = import nixpkgs { system = "x86_64-darwin"; }; };
overlay-agenix = inputs.agenix.overlays.default; overlay-agenix = inputs.agenix.overlays.default;
overlay-attic = inputs.attic.overlays.default; overlay-attic = inputs.attic.overlays.default;
overlay-neovim = inputs.neovim-nightly-overlay.overlay; overlay-neovim = _: _: { neovim-nightly = inputs.neovim-flake.packages.${default-system}.neovim; };
overlay-nifoc = inputs.nifoc-overlay.overlay; overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = { nixpkgsConfig = {

View file

@ -1,8 +1,10 @@
{ nixpkgs, home-manager, inputs, ... }: { nixpkgs, home-manager, inputs, ... }:
let let
default-system = "aarch64-linux";
overlay-attic = inputs.attic.overlays.default; overlay-attic = inputs.attic.overlays.default;
overlay-neovim = inputs.neovim-nightly-overlay.overlay; overlay-neovim = _: _: { neovim-nightly = inputs.neovim-flake.packages.${default-system}.neovim; };
overlay-nifoc = inputs.nifoc-overlay.overlay; overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = { nixpkgsConfig = {
@ -20,7 +22,7 @@ let
in in
{ {
system = nixpkgs.lib.nixosSystem { system = nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = default-system;
modules = [ modules = [
({ ({
nixpkgs.overlays = nixpkgsConfig.overlays; nixpkgs.overlays = nixpkgsConfig.overlays;

View file

@ -1,7 +1,9 @@
{ nixpkgs, home-manager, agenix, attic, inputs, ... }: { nixpkgs, home-manager, agenix, attic, inputs, ... }:
let let
overlay-neovim = inputs.neovim-nightly-overlay.overlay; default-system = "x86_64-linux";
overlay-neovim = _: _: { neovim-nightly = inputs.neovim-flake.packages.${default-system}.neovim; };
overlay-nifoc = inputs.nifoc-overlay.overlay; overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = { nixpkgsConfig = {
@ -18,7 +20,7 @@ let
in in
{ {
system = nixpkgs.lib.nixosSystem { system = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = default-system;
modules = [ modules = [
../hosts/attic.nix ../hosts/attic.nix

View file

@ -1,8 +1,10 @@
{ nixpkgs, home-manager, agenix, inputs, ... }: { nixpkgs, home-manager, agenix, inputs, ... }:
let let
default-system = "x86_64-linux";
overlay-attic = inputs.attic.overlays.default; overlay-attic = inputs.attic.overlays.default;
overlay-neovim = inputs.neovim-nightly-overlay.overlay; overlay-neovim = _: _: { neovim-nightly = inputs.neovim-flake.packages.${default-system}.neovim; };
overlay-nifoc = inputs.nifoc-overlay.overlay; overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = { nixpkgsConfig = {
@ -20,7 +22,7 @@ let
in in
{ {
system = nixpkgs.lib.nixosSystem { system = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = default-system;
modules = [ modules = [
../hosts/mediaserver.nix ../hosts/mediaserver.nix

View file

@ -1,8 +1,10 @@
{ nixpkgs, home-manager, agenix, inputs, ... }: { nixpkgs, home-manager, agenix, inputs, ... }:
let let
default-system = "x86_64-linux";
overlay-attic = inputs.attic.overlays.default; overlay-attic = inputs.attic.overlays.default;
overlay-neovim = inputs.neovim-nightly-overlay.overlay; overlay-neovim = _: _: { neovim-nightly = inputs.neovim-flake.packages.${default-system}.neovim; };
overlay-nifoc = inputs.nifoc-overlay.overlay; overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = { nixpkgsConfig = {
@ -20,7 +22,7 @@ let
in in
{ {
system = nixpkgs.lib.nixosSystem { system = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = default-system;
modules = [ modules = [
../hosts/sail.nix ../hosts/sail.nix