fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

support both classical nix and flakes (#916)

author
Janik
committer
GitHub
date (Feb 15, 2025, 11:19 PM +0200) commit 388cba65 parent b437dc7b
+24 -18
+17
ctag-overlay.nix
··· 1 + self: super: rec { 2 + my-universal-ctags = super.universal-ctags.overrideAttrs (old: rec { 3 + version = "6.1.0"; 4 + src = super.fetchFromGitHub { 5 + owner = "universal-ctags"; 6 + repo = "ctags"; 7 + rev = "v${version}"; 8 + sha256 = "sha256-f8+Ifjn7bhSYozOy7kn+zCLdHGrH3iFupHUZEGynz9Y="; 9 + }; 10 + # disable checks, else we get `make[1]: *** No rule to make target 'optlib/cmake.c'. Stop.` 11 + doCheck = false; 12 + checkFlags = [ ]; 13 + }); 14 + 15 + # Skip building if same ctags version as registry 16 + universal-ctags = if super.universal-ctags.version == my-universal-ctags.version then super.universal-ctags else my-universal-ctags; 17 + }
+2 -17
flake.nix
··· 16 16 overlays = [ self.overlays.ctags ]; 17 17 }; 18 18 in { default = import ./shell.nix { inherit pkgs; }; }); 19 - # Pin a specific version of universal-ctags to the same version as in cmd/symbols/ctags-install-alpine.sh. 20 - overlays.ctags = self: super: rec { 21 - my-universal-ctags = super.universal-ctags.overrideAttrs (old: rec { 22 - version = "6.1.0"; 23 - src = super.fetchFromGitHub { 24 - owner = "universal-ctags"; 25 - repo = "ctags"; 26 - rev = "v${version}"; 27 - sha256 = "sha256-f8+Ifjn7bhSYozOy7kn+zCLdHGrH3iFupHUZEGynz9Y="; 28 - }; 29 - # disable checks, else we get `make[1]: *** No rule to make target 'optlib/cmake.c'. Stop.` 30 - doCheck = false; 31 - checkFlags = [ ]; 32 - }); 33 - # Skip building if same ctags version as registry 34 - universal-ctags = if super.universal-ctags.version == my-universal-ctags.version then super.universal-ctags else my-universal-ctags; 35 - }; 19 + # Pin a specific version of universal-ctags to the same version as in ./install-ctags-alpine.sh. 20 + overlays.ctags = import ./ctag-overlay.nix; 36 21 }; 37 22 }
+5 -1
shell.nix
··· 1 - { pkgs }: 1 + { pkgs ? import <nixpkgs> { 2 + overlays = [ 3 + (import ./ctag-overlay.nix) 4 + ]; 5 + }}: 2 6 let 3 7 # pkgs.universal-ctags installs the binary as "ctags", not "universal-ctags" 4 8 # like zoekt expects.