15 rustPlatform.buildRustPackage rec {
16 pname = "license-cli";
19 src = fetchFromSourcehut {
23 hash = "sha256-OGS26mE5rjxlZOaBWhYc7C8aM3Lq2xX0f31LgckjJF8=";
26 cargoHash = "sha256-Zj9t/e6QhiOxU8mlVRBKEbviSTKXM4WQ3lqtoCcMbMI=";
34 ${scdoc}/bin/scdoc < doc/license.scd > license.1
38 installShellCompletion completions/license.{bash,fish}
39 installShellCompletion --zsh completions/_license
40 installManPage ./license.1
42 install -Dm0755 ./scripts/set-license -t $out/bin
43 wrapProgram $out/bin/set-license \
44 --prefix PATH : "$out/bin" \
45 --prefix PATH : ${lib.makeBinPath [ fzf ]}
47 install -Dm0755 ./scripts/copy-header -t $out/bin
48 wrapProgram $out/bin/copy-header \
49 --prefix PATH : "$out/bin" \
59 homepage = "https://git.sr.ht/~zethra/license";
60 description = "Command-line tool to easily add license to your project";
61 license = licenses.mpl20;
62 mainProgram = "license";
63 maintainers = with maintainers; [ foo-dogsquared ];