From a957f2097b05c02896d8f53f9b06f5d6b273081d Mon Sep 17 00:00:00 2001 From: jahway603 Date: Mon, 21 Mar 2022 14:11:21 -0400 Subject: [PATCH] updated README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a6dd90c..77e45c6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # HushNixPkgs -Hush packages written for Nix/NixOS \ No newline at end of file +Hush packages written for Nix/NixOS + +## How to build on NixOS + +1. Enter directory of package. +1. Run the following to build it `nix-build -E 'with import {}; callPackage ./default.nix {}'` + +## How to calculate directory sha256sum + +NixOS requires packages to use the directory hash and this can be done as follows: +1. Download the tar.gz source code and extract. +1. Then run the following against that directory-name: `nix hash-path directory-name` +