{ description = "My Completely Inelegant Neovim Flake"; inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; overlays = [ (self: super: { vale = super.callPackage ./nix/vale.nix { }; flake8-isort = super.python3Packages.callPackage ./nix/flake8-isort.nix { }; mypython = super.python3Packages.callPackage ./nix/mypython.nix { }; }) ]; }; in { packages.${system}.neovimCH = with pkgs; symlinkJoin { name = "neovim"; paths = [ pkgs.neovim ]; buildInputs = [ pkgs.makeWrapper ]; postBuild = with pkgs; '' rm $out/bin/nvim BINPATH=${lib.makeBinPath [ nodejs mypython pyright vale tree-sitter nodePackages.bash-language-server shellcheck hadolint ]} makeWrapper ${neovim}/bin/nvim $out/bin/nvim --prefix PATH : $BINPATH ''; }; }; }