From 118bb3fd9d65180b6d3372ba9eeaeb3e5f789008 Mon Sep 17 00:00:00 2001 From: Sashanoraa Date: Fri, 28 Jul 2023 10:28:54 -0400 Subject: [PATCH] Add flake info to README --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index d5249e6..b616132 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,24 @@ selected license into a file called `LICENSE` in the current directory. `xclip` on X.org and `wl-copy` on Wayland. It take the comment string as the first argument. +## Nix Flake + +Run via `nix run sourcehut:~zethra/license/` + +Or install + +```nix +# Flake inputs +license.url = "sourcehut:~zethra/license/"; + +# In NixOS config +environment.systemPackages = [ + (license.packages.${system}) +]; +``` + +See [my NixOS config](https://git.sr.ht/~zethra/nixcfg/tree/f57d9016e2229c3a17bd5287570128e2ef950b2a/item/flake.nix#L40) as an example + ## Build Requires rustc 1.64.0 or greater. -- 2.45.2