---
contrib/pkg/nix/license.nix | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 contrib/pkg/nix/license.nix
diff --git a/contrib/pkg/nix/license.nix b/contrib/pkg/nix/license.nix
new file mode 100644
index 0000000..a25cddc
--- /dev/null
+++ b/contrib/pkg/nix/license.nix
@@ -0,0 +1,40 @@
+with import <nixpkgs> {};
+rustPlatform.buildRustPackage rec {
+ pname = "license";
+ version = "2.6.0";
+
+ src = fetchFromSourcehut {
+ owner = "~zethra";
+ repo = pname;
+ rev = version;
+ sha256 = "119i9ac73mchjpml6acvi6kq50b5izbaia4gh4nhcd0b4yqxxxrq";
+ };
+
+ nativeBuildInputs = [ scdoc installShellFiles makeWrapper ];
+ buildInputs = [ fzf xclip ];
+
+ cargoSha256 = "14n4gbdhniz5ln56qjqj1qdvqb65j42lg4vhpcgiwx0hq6hd8ybq";
+
+ postInstall = ''
+ install -m755 "scripts/set-license" "$out/bin/set-license"
+ wrapProgram "$out/bin/set-license" --prefix PATH : ${pkgs.lib.makeBinPath buildInputs}
+
+ install -m755 "scripts/copy-header" "$out/bin/copy-header"
+ wrapProgram "$out/bin/copy-header" --prefix PATH : ${pkgs.lib.makeBinPath buildInputs}
+
+ scdoc < doc/license.scd > doc/license.1
+ installManPage doc/license.1
+
+
+ installShellCompletion \
+ --bash completions/license.bash \
+ --zsh completions/_license \
+ --fish completions/license.fish
+ '';
+
+ meta = with lib; {
+ description = "A fast line-oriented regex search tool, similar to ag and ack";
+ homepage = "https://git.sr.ht/~zethra/license";
+ license = licenses.mpl20;
+ };
+}
Looks like you forgot to change the package description.
--
2.31.1