From e0e8562d2341b890f2ef590223a852edbd3788c2 Mon Sep 17 00:00:00 2001 From: Blizzard Finnegan Date: Wed, 21 Jun 2023 10:41:07 -0400 Subject: [PATCH] Update documentation re: dependencies --- README.md | 25 ------------------------- shell.nix | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/README.md b/README.md index ec1f967..f166280 100644 --- a/README.md +++ b/README.md @@ -44,28 +44,3 @@ sudo ./target/release/seymour_life You can also build without the `--release` flag, which wil take less time, but will be less optimised for the hardware. If you do this, substitue `./target/release/seymour_life` for `./target/debug/seymour_life` in the above command. -### Build Dependencies - -The following dependencies are also necessary for building this project: -- `pkg-config` -- `libudev` - -See below for platform specific requirements. - -#### Debian-based -This applies for all distributions of Linux using the `apt` package manager, including but not limited to Debian, Ubuntu, Raspbian/Raspberry Pi OS, and Linux Mint. - -```bash -sudo apt-get install librust-libudev-sys-dev librust-pkg-config-dev -``` - -#### Fedora-based -This applies for all distributions of Linux using the `dnf` package manager, including but not limited to CentOS, Redhat Enterprise Linux (RHEL), and Fedora. -```bash -sudo dnf install rust-libudev-sys-devel rust-pkg-config-devel -``` - -#### Nix -This applies to both NixOS, and any distribution where the [Nix package manager](https://nixos.org/download.html) can be installed. - -If you have the Nix package manager installed, this project comes with a `shell.nix` containing the necessary build dependencies. Simply run `nix-shell` to download the necessary dependencies. diff --git a/shell.nix b/shell.nix index 9d75c26..42ef54a 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1,4 @@ {pkgs ? import {} }: pkgs.mkShell { - nativeBuildInputs = with pkgs; [ cargo rustc pkg-config libudev-zero ]; + nativeBuildInputs = with pkgs; [ cargo rustc ]; }