diff --git a/flake.lock b/flake.lock index f5da24b..c699477 100644 --- a/flake.lock +++ b/flake.lock @@ -18,11 +18,11 @@ }, "flake-utils": { "locked": { - "lastModified": 1653893745, - "narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=", + "lastModified": 1659877975, + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", "owner": "numtide", "repo": "flake-utils", - "rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1", + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", "type": "github" }, "original": { @@ -33,11 +33,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1655319683, - "narHash": "sha256-oeaucIu0Re7du7AGP1Y+yPqRghO+WyC6DagqaDpI7do=", + "lastModified": 1666867875, + "narHash": "sha256-3nD7iQXd/J6KjkT8IjozTuA5p8qjiLKTxvOUmH+AzNM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9e74ccc250321dea913219f9ce4ed2cdbdeecfde", + "rev": "c132d0837dfb9035701dcd8fc91786c605c855c3", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index b5218cb..b82d404 100644 --- a/flake.nix +++ b/flake.nix @@ -20,11 +20,22 @@ version = "0.2.0"; src = ./.; vendorSha256 = "sha256-ia0Z9yz2LrRAd9huncFtl/a6R3/gRpqbg6TdnauvEmQ="; + nativeBuildInputs = with pkgs; [ + tmux + installShellFiles + ]; + + postInstall = '' + for shell in bash fish zsh; do + $out/bin/workon completion $shell > workon.$shell + installShellCompletion --$shell workon.$shell + done + ''; }; - defaultPackage = self.packages.${system}.workon; + packages.default = self.packages.${system}.workon; - devShell = pkgs.mkShell { + devShells.default = pkgs.mkShell { name = "workon"; buildInputs = with pkgs; [ go gopls ]; };