From 4cf3b129dcacc05e0a1d7ed42c57a12c12430eb5 Mon Sep 17 00:00:00 2001 From: Joris Masson Date: Thu, 16 Jun 2022 12:43:50 +0200 Subject: [PATCH] Amend README nix installation example --- README.md | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 82833e5..89e80dd 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,15 @@ # Install ```nix -with import {}; -fetchSubmodules = true; -let - tcrdd = callPackage (fetchFromGitHub { - owner = "FaustXVI"; - repo = "tcrdd"; - fetchSubmodules = true; - rev= "..."; - sha256 = "..."; - }) {}; -in stdenv.mkDerivation { - name = "..."; - buildInputs = [ - tcrdd - ]; -} +{ pkgs ? import {}}: + +pkgs.callPackage (pkgs.fetchFromGitHub { + owner = "FaustXVI"; + repo = "tcrdd"; + fetchSubmodules = true; + rev= "..."; + sha256 = "..."; +}) {} ``` # Usage