From d88151d3cfb83b0fe48513a89bccee07835fe51a Mon Sep 17 00:00:00 2001 From: urlordjames <32751441+urlordjames@users.noreply.github.com> Date: Sat, 11 Dec 2021 22:01:05 -0500 Subject: [PATCH] update Nix package installation instructions (#23) --- ENG-02-Installation.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ENG-02-Installation.md b/ENG-02-Installation.md index 3d83fe4..a42623d 100644 --- a/ENG-02-Installation.md +++ b/ENG-02-Installation.md @@ -280,17 +280,12 @@ We also provide a pre-build docker image on the [docker hub](https://hub.docker. ## Use Nix Package -There is a Nix package offered for Drogon. Currently, if you wish to use this package you must use the unstable channel. You can add this channel with the alias "unstable" by running: - -``` -sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable -sudo nix-channel --update -``` +There is a Nix package for Drogon which was released in version 21.11. You can use the package by adding the following `shell.nix` to your project root: ``` -{ pkgs ? import {} }: +{ pkgs ? import {} }: pkgs.mkShell { nativeBuildInputs = with pkgs; [ cmake @@ -302,7 +297,7 @@ pkgs.mkShell { } ``` -Enter the shell by running `nix-shell`. This will install Drogon and enter you into an environment with all its dependancies. +Enter the shell by running `nix-shell`. This will install Drogon and enter you into an environment with all its dependencies. The Nix package has a few options which you can configure according to your needs: