{ description = "Improved text objects for {neo,}vim"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; }; outputs = { self , nixpkgs , ... } @ rest: let supportedSystems = [ "x86_64-linux" "x86_64-darwin" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; overlays = [ self.overlay ]; } ); in { overlay = final: prev: rec { better-text-objs = with final; pkgs.vimUtils.buildVimPlugin { pname = "better-text-objs"; version = "0.1.0"; src = ./.; }; }; packages = forAllSystems (system: { inherit (nixpkgsFor."${system}") better-text-objs; } ); defaultPackage = forAllSystems (system: self.packages."${system}".better-text-objs); }; }