diff --git a/pkgs/development/tools/gen-license/default.nix b/pkgs/development/tools/gen-license/default.nix new file mode 100644 index 000000000000..b6d744c985a2 --- /dev/null +++ b/pkgs/development/tools/gen-license/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, rustPlatform +, fetchCrate +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "gen-license"; + version = "0.1.2"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-YZcycLQ436cjr2YTT7TEyMdeLTOl9oEfa5x3lgnnYyo="; + }; + + cargoHash = "sha256-2PT20eoXxBPhGsmHlEEGE2ZDyhyrD7tFdwnn3khjKNo="; + + buildInputs = lib.optional stdenv.isDarwin Security; + + meta = with lib; { + description = "Create licenses for your projects right from your terminal"; + homepage = "https://github.com/nexxeln/license-generator"; + license = licenses.mit; + maintainers = [ ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b7da8703dac6..250aff4de58f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1671,6 +1671,10 @@ with pkgs; gen6dns = callPackage ../tools/networking/gen6dns { }; + gen-license = callPackage ../development/tools/gen-license { + inherit (darwin.apple_sdk.frameworks) Security; + }; + github-copilot-cli = callPackage ../tools/misc/github-copilot-cli { }; gfshare = callPackage ../tools/security/gfshare { };