summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/chit
diff options
context:
space:
mode:
authorLily Ballard <lily@sb.org>2019-05-12 22:49:40 -0700
committerLily Ballard <lily@sb.org>2019-05-12 22:49:40 -0700
commit453a37b420590c2e4fe6b74327cf4b6ea6a4d4e2 (patch)
treebcd873123164d96ae658c555bbda9270fdcbe6a3 /pkgs/development/tools/chit
parent59a733edae6c08ec88d007a0ebcdcdb8f906e3ff (diff)
chit: init at 0.1.12
Diffstat (limited to 'pkgs/development/tools/chit')
-rw-r--r--pkgs/development/tools/chit/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/tools/chit/default.nix b/pkgs/development/tools/chit/default.nix
new file mode 100644
index 000000000000..a23a3d45ccee
--- /dev/null
+++ b/pkgs/development/tools/chit/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
+, darwin
+}:
+
+with rustPlatform;
+
+buildRustPackage rec {
+ pname = "chit";
+ version = "0.1.12";
+
+ src = fetchFromGitHub {
+ owner = "peterheesterman";
+ repo = pname;
+ rev = version;
+ sha256 = "17g2p07zhf4n4pjmws0ssfy2mrn0v933ih0vnlr1z2cv9mx8srsl";
+ };
+
+ cargoSha256 = "1jqnnf4jgjpm1i310hda15423nxfw9frgpmc2kbrs66qcsj7avaw";
+
+ nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkgconfig ];
+ buildInputs = []
+ ++ stdenv.lib.optionals stdenv.isLinux [ openssl ]
+ ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security ])
+ ;
+
+ # Tests require network access
+ doCheck = false;
+
+ meta = with stdenv.lib; {
+ description = "Crate help in terminal: A tool for looking up details about rust crates without going to crates.io";
+ longDescription = ''
+ Chit helps answer these questions:
+
+ * Who wrote this crate? What else did they write?
+ * What alternatives are there?
+ * How old is this crate?
+ * What versions are there? When did they come out?
+ * What are the downloads over time?
+ * Should i use this crate?
+ * How mature is it?
+ '';
+ homepage = https://github.com/peterheesterman/chit;
+ license = licenses.mit;
+ maintainers = [ maintainers.lilyball ];
+ platforms = platforms.all;
+ };
+}