mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	build(nix): clean up nix flake (#21565)
This commit is contained in:
		
							
								
								
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -74,4 +74,10 @@ tags | |||||||
| # vim patches | # vim patches | ||||||
| /vim-*.patch | /vim-*.patch | ||||||
|  |  | ||||||
|  | # nix build results | ||||||
|  | /result | ||||||
|  | /result-* | ||||||
|  | /contrib/result | ||||||
|  | /contrib/result-* | ||||||
|  |  | ||||||
| CMakeUserPresets.json | CMakeUserPresets.json | ||||||
|   | |||||||
							
								
								
									
										6
									
								
								contrib/flake.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								contrib/flake.lock
									
									
									
										generated
									
									
									
								
							| @@ -17,11 +17,11 @@ | |||||||
|     }, |     }, | ||||||
|     "nixpkgs": { |     "nixpkgs": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1669052418, |         "lastModified": 1671983799, | ||||||
|         "narHash": "sha256-M1I4BKXBQm2gey1tScemEh5TpHHE3gKptL7BpWUvL8s=", |         "narHash": "sha256-Z2Ro6hFPZHkBqkVXY5/aBUzxi5xizQGvuHQ9+T5B/ks=", | ||||||
|         "owner": "nixos", |         "owner": "nixos", | ||||||
|         "repo": "nixpkgs", |         "repo": "nixpkgs", | ||||||
|         "rev": "20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8", |         "rev": "fad51abd42ca17a60fc1d4cb9382e2d79ae31836", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|   | |||||||
| @@ -8,15 +8,11 @@ | |||||||
|  |  | ||||||
|   outputs = { self, nixpkgs, flake-utils }: |   outputs = { self, nixpkgs, flake-utils }: | ||||||
|     { |     { | ||||||
|       overlay = final: prev: rec { |       overlay = final: prev: { | ||||||
|  |  | ||||||
|         neovim = final.neovim-unwrapped.overrideAttrs (oa: { |         neovim = final.neovim-unwrapped.overrideAttrs (oa: { | ||||||
|           version = "master"; |           version = "master"; | ||||||
|           src = ../.; |           src = ../.; | ||||||
|  |  | ||||||
|           buildInputs = oa.buildInputs |  | ||||||
|             ++ final.lib.optionals final.stdenv.isDarwin |  | ||||||
|             (with final.darwin.apple_sdk.frameworks; [ CoreServices ]); |  | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|         # a development binary to help debug issues |         # a development binary to help debug issues | ||||||
| @@ -25,7 +21,7 @@ | |||||||
|             final.llvmPackages_latest.stdenv |             final.llvmPackages_latest.stdenv | ||||||
|           else |           else | ||||||
|             final.stdenv; |             final.stdenv; | ||||||
|         in ((neovim.override { |         in (final.neovim.override { | ||||||
|           lua = final.luajit; |           lua = final.luajit; | ||||||
|           inherit stdenv; |           inherit stdenv; | ||||||
|         }).overrideAttrs (oa: { |         }).overrideAttrs (oa: { | ||||||
| @@ -37,13 +33,13 @@ | |||||||
|           cmakeFlags = oa.cmakeFlags ++ [ "-DMIN_LOG_LEVEL=0" ]; |           cmakeFlags = oa.cmakeFlags ++ [ "-DMIN_LOG_LEVEL=0" ]; | ||||||
|  |  | ||||||
|           disallowedReferences = [ ]; |           disallowedReferences = [ ]; | ||||||
|         })); |         }); | ||||||
|  |  | ||||||
|         # for neovim developers, beware of the slow binary |         # for neovim developers, beware of the slow binary | ||||||
|         neovim-developer = let luacheck = final.luaPackages.luacheck; |         neovim-developer = let inherit (final.luaPackages) luacheck; | ||||||
|         in (neovim-debug.override ({ |         in (final.neovim-debug.override { | ||||||
|           doCheck = final.stdenv.isLinux; |           doCheck = final.stdenv.isLinux; | ||||||
|         })).overrideAttrs (oa: { |         }).overrideAttrs (oa: { | ||||||
|           cmakeFlags = oa.cmakeFlags ++ [ |           cmakeFlags = oa.cmakeFlags ++ [ | ||||||
|             "-DLUACHECK_PRG=${luacheck}/bin/luacheck" |             "-DLUACHECK_PRG=${luacheck}/bin/luacheck" | ||||||
|             "-DMIN_LOG_LEVEL=0" |             "-DMIN_LOG_LEVEL=0" | ||||||
| @@ -113,15 +109,10 @@ | |||||||
|               # ASAN_OPTIONS=detect_leaks=1 |               # ASAN_OPTIONS=detect_leaks=1 | ||||||
|               export ASAN_OPTIONS="log_path=./test.log:abort_on_error=1" |               export ASAN_OPTIONS="log_path=./test.log:abort_on_error=1" | ||||||
|               export UBSAN_OPTIONS=print_stacktrace=1 |               export UBSAN_OPTIONS=print_stacktrace=1 | ||||||
|               mkdir -p build/runtime/parser |  | ||||||
|               # nvim looks into CMAKE_INSTALL_DIR. Hack to avoid errors |  | ||||||
|               # when running the functionaltests |  | ||||||
|               mkdir -p outputs/out/share/nvim/syntax |  | ||||||
|               touch outputs/out/share/nvim/syntax/syntax.vim |  | ||||||
|  |  | ||||||
|               # for treesitter functionaltests |               # for treesitter functionaltests | ||||||
|               mkdir -p runtime/parser |               mkdir -p runtime/parser | ||||||
|               cp -f ${pkgs.tree-sitter.builtGrammars.tree-sitter-c}/parser runtime/parser/c.so |               cp -f ${pkgs.vimPlugins.nvim-treesitter.builtGrammars.c}/parser runtime/parser/c.so | ||||||
|             ''; |             ''; | ||||||
|           }); |           }); | ||||||
|         }; |         }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 figsoda
					figsoda