~zethra/license

118bb3fd9d65180b6d3372ba9eeaeb3e5f789008 — Sashanoraa 7 months ago 8441920
Add flake info to README
1 files changed, 18 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +18 -0
@@ 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/<desired tag>`

Or install

```nix
# Flake inputs
license.url = "sourcehut:~zethra/license/<desired tag>";

# 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.