Skip to content

Commit

Permalink
doc: Add nixpkgs docs for Githooks ⚓
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed May 7, 2024
1 parent b789b40 commit ed90c2c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -977,8 +977,11 @@ script and `bash -s -- -- <options>` to pass arguments to the installer

### Package Manager `nix`

Install the Githooks derivation at version `<version>` by adding the following
to your `inputs` in your `flake.nix`:
Githooks is inside [`nixpkgs`](https://github.com/NixOS/nixpkgs), so you can
access it by `pkgs.githooks` in your `flake.nix`.

To install the Githooks derivation at a different version `<version>`, add the
following to your `inputs` in your `flake.nix`:

```nix
inputs = {
Expand Down

0 comments on commit ed90c2c

Please sign in to comment.