summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-18 00:31:11 +0100
committerGitHub <noreply@github.com>2021-01-18 00:31:11 +0100
commit842e808a69289de71d597c2f4673e1ab9f08dea9 (patch)
treeef8e8c78f4d03b2c70407a05a8c7e66f1a0dc8f2
parentd8736c215f62cb188f2e9677dc9cfe7d3bbad865 (diff)
parent75658b374b815cd716dfba2752add61c501a23bd (diff)
Merge pull request #109591 from baloo/baloo/cargo-readme/initial
cargo-readme: init at 3.2.0
-rw-r--r--maintainers/maintainer-list.nix6
-rw-r--r--pkgs/development/tools/rust/cargo-readme/default.nix34
-rw-r--r--pkgs/top-level/all-packages.nix1
3 files changed, 41 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index f06929e46d14..3d48c75ff0dc 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -970,6 +970,12 @@
email = "sivaraman.balaji@gmail.com";
name = "Balaji Sivaraman";
};
+ baloo = {
+ email = "nixpkgs@superbaloo.net";
+ github = "baloo";
+ githubId = 59060;
+ name = "Arthur Gautier";
+ };
balsoft = {
email = "balsoft75@gmail.com";
github = "balsoft";
diff --git a/pkgs/development/tools/rust/cargo-readme/default.nix b/pkgs/development/tools/rust/cargo-readme/default.nix
new file mode 100644
index 000000000000..ae638cac8a9a
--- /dev/null
+++ b/pkgs/development/tools/rust/cargo-readme/default.nix
@@ -0,0 +1,34 @@
+{ lib, stdenv, rustPlatform, fetchFromGitHub, fetchpatch }:
+
+rustPlatform.buildRustPackage rec {
+ pname = "cargo-readme";
+ version = "3.2.0";
+
+ src = fetchFromGitHub {
+ owner = "livioribeiro";
+ repo = pname;
+ # Git tag is missing, see upstream issue:
+ # https://github.com/livioribeiro/cargo-readme/issues/61
+ rev = "cf66017c0120ae198210ebaf58a0be6a78372974";
+ sha256 = "sha256-/ufHHM13L83M3UYi6mjdhIjgXx7bZgzvR/X02Zsx7Fw=";
+ };
+
+ cargoSha256 = "sha256-QVRl6xCvztWi5zAs3PXYR4saTqO5nTBPIjdlMiMXFTM=";
+
+ patches = [
+ (fetchpatch {
+ # Fixup warning thrown at build when running test-suite
+ # unused return, see upstream PR:
+ # https://github.com/livioribeiro/cargo-readme/pull/62
+ url = "https://github.com/livioribeiro/cargo-readme/commit/060f2daaa2b2cf981bf490dc36bcc6527545ea03.patch";
+ sha256 = "sha256-wlAIgTI9OqtA/Jnswoqp7iOj+1zjrUZA7JpHUiF/n+s=";
+ })
+ ];
+
+ meta = with lib; {
+ description = "Generate README.md from docstrings";
+ homepage = "https://github.com/livioribeiro/cargo-readme";
+ license = with licenses; [ mit asl20 ];
+ maintainers = with maintainers; [ baloo ];
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 570b8dadf4e4..579bac12bb5c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -10637,6 +10637,7 @@ in
cargo-raze = callPackage ../development/tools/rust/cargo-raze {
inherit (darwin.apple_sdk.frameworks) Security;
};
+ cargo-readme = callPackage ../development/tools/rust/cargo-readme {};
cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
cargo-sync-readme = callPackage ../development/tools/rust/cargo-sync-readme {};
cargo-udeps = callPackage ../development/tools/rust/cargo-udeps {