🔧 nix install shell completion
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4c54f1d449
commit
542e4924a2
12
flake.lock
generated
12
flake.lock
generated
@ -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": {
|
||||
|
15
flake.nix
15
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 ];
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user