Add default.nix file to main and update readme (#211)

Co-authored-by: Emile Akbarzadeh <emile@dromeda.com.au>
This commit is contained in:
Emile Akbarzadeh
2024-10-26 01:20:15 +11:00
committed by GitHub
parent 4856199153
commit 9f52a2ac93
2 changed files with 10 additions and 0 deletions

View File

@@ -94,6 +94,13 @@ paru -S lan-mouse-bin
- nixpkgs: [search.nixos.org](https://search.nixos.org/packages?channel=unstable&show=lan-mouse&from=0&size=50&sort=relevance&type=packages&query=lan-mouse)
- flake: [README.md](./nix/README.md)
### Building from source with Nix
In the root of the project to build Lan Mouse, run
```sh
nix-build
```
You can find the executable in `result/bin/lan-mouse` .
### Manual Installation

3
default.nix Normal file
View File

@@ -0,0 +1,3 @@
{ pkgs ? import <nixpkgs> { }
}:
pkgs.callPackage nix/default.nix { }