Skip to content

Commit

Permalink
Add NixOS overlay to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Valodim authored and 3v1n0 committed Nov 29, 2020
1 parent 48f3bb0 commit e34de1d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,29 @@ Install packages:
- `git clone https://github.com/3v1n0/libfprint`
- `meson libfprint libfprint/_build && sudo ninja -C libfprint/_build install`

#### NixOS

- Enable fprintd as usual via `services.fprintd.enable = true;`
- Apply this overlay (possibly update rev and sha256, if necessary):

```
self: super: {
libfprint = super.libfprint.overrideAttrs (
up: {
version = "1.90.1+vfs0090.1";
src = super.fetchFromGitHub {
owner = "3v1n0";
repo = "libfprint";
rev = "48f3bb005d256477658273f0592442143740408e";
sha256 = "sha256-Ari94tq9Q7LAxh/TOdoRG9J3kAzEnitwwPA5E5HFxxc=";
fetchSubmodules = true;
};
buildInputs = up.buildInputs ++ ([ self.openssl ]);
}
);
}
```

#### Other distros
- `git clone https://github.com/3v1n0/libfprint`
- `meson libfprint libfprint/_build && sudo ninja -C libfprint/_build install`
Expand Down

0 comments on commit e34de1d

Please sign in to comment.