fork of https://github.com/sourcegraph/zoekt
1{
2 description = "The Zoekt developer environment Nix Flake";
3
4 inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; };
5
6 outputs = { self, nixpkgs }: {
7 devShells = nixpkgs.lib.genAttrs [
8 "x86_64-linux"
9 "aarch64-linux"
10 "aarch64-darwin"
11 "x86_64-darwin"
12 ] (system:
13 let
14 pkgs = import nixpkgs {
15 inherit system;
16 overlays = [ self.overlays.ctags ];
17 };
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 universal-ctags = super.universal-ctags.overrideAttrs (old: {
22 version = "5.9.20220403.0";
23 src = super.fetchFromGitHub {
24 owner = "universal-ctags";
25 repo = "ctags";
26 rev = "f95bb3497f53748c2b6afc7f298cff218103ab90";
27 sha256 = "sha256-pd89KERQj6K11Nue3YFNO+NLOJGqcMnHkeqtWvMFk38=";
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 };
34 };
35}