🔧 nix install shell completion
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
James Walker 2022-10-27 20:14:59 -04:00
parent 4c54f1d449
commit 542e4924a2
Signed by: walkah
GPG Key ID: 3C127179D6086E93
2 changed files with 19 additions and 8 deletions

View File

@ -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": {

View File

@ -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 ];
};