From 6068a73e5f10b686d8a2c4da97657cd09aff41ae Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:19:00 +0800 Subject: [PATCH 1/2] gen-license: init at 0.1.2 --- .../development/tools/gen-license/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/gen-license/default.nix 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 { }; From 1242a9d55eae3621890fb45c62398362bbfa5af1 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:19:51 +0800 Subject: [PATCH 2/2] maintainers: add ryanccn --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/development/tools/gen-license/default.nix | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4d4af4c9f47e..6e271f24246b 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14465,6 +14465,12 @@ githubId = 889991; name = "Ryan Artecona"; }; + ryanccn = { + email = "hello@ryanccn.dev"; + github = "ryanccn"; + githubId = 70191398; + name = "Ryan Cao"; + }; ryane = { email = "ryanesc@gmail.com"; github = "ryane"; diff --git a/pkgs/development/tools/gen-license/default.nix b/pkgs/development/tools/gen-license/default.nix index b6d744c985a2..a3495866576d 100644 --- a/pkgs/development/tools/gen-license/default.nix +++ b/pkgs/development/tools/gen-license/default.nix @@ -22,6 +22,6 @@ rustPlatform.buildRustPackage rec { description = "Create licenses for your projects right from your terminal"; homepage = "https://github.com/nexxeln/license-generator"; license = licenses.mit; - maintainers = [ ]; + maintainers = [ maintainers.ryanccn ]; }; }