diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-05-13 20:36:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 20:36:01 -0400 |
commit | bc7d17aa47abe67c25b20c9b10c88d0e3bf1f957 (patch) | |
tree | b204d49819c285818d251538c758d75d92733d7d | |
parent | aeea224fa219ac181d4af4788517ee0837748d6e (diff) | |
parent | 453a37b420590c2e4fe6b74327cf4b6ea6a4d4e2 (diff) | |
download | nixlib-bc7d17aa47abe67c25b20c9b10c88d0e3bf1f957.tar nixlib-bc7d17aa47abe67c25b20c9b10c88d0e3bf1f957.tar.gz nixlib-bc7d17aa47abe67c25b20c9b10c88d0e3bf1f957.tar.bz2 nixlib-bc7d17aa47abe67c25b20c9b10c88d0e3bf1f957.tar.lz nixlib-bc7d17aa47abe67c25b20c9b10c88d0e3bf1f957.tar.xz nixlib-bc7d17aa47abe67c25b20c9b10c88d0e3bf1f957.tar.zst nixlib-bc7d17aa47abe67c25b20c9b10c88d0e3bf1f957.zip |
Merge pull request #61428 from lilyball/chit
chit: init at 0.1.12
-rw-r--r-- | pkgs/development/tools/chit/default.nix | 47 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 49 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3262e0e0d78a..d2766c96e257 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2034,6 +2034,8 @@ in checkinstall = callPackage ../tools/package-management/checkinstall { }; + chit = callPackage ../development/tools/chit { }; + chkrootkit = callPackage ../tools/security/chkrootkit { }; chrony = callPackage ../tools/networking/chrony { }; |