From 9f52a2ac930821239e87e0a7237df42f74866819 Mon Sep 17 00:00:00 2001 From: Emile Akbarzadeh Date: Sat, 26 Oct 2024 01:20:15 +1100 Subject: [PATCH] Add default.nix file to main and update readme (#211) Co-authored-by: Emile Akbarzadeh --- README.md | 7 +++++++ default.nix | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 default.nix diff --git a/README.md b/README.md index fe2dcd3..eb202d0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..1d42d46 --- /dev/null +++ b/default.nix @@ -0,0 +1,3 @@ +{ pkgs ? import { } +}: +pkgs.callPackage nix/default.nix { }