Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: aeea224fa219
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bc7d17aa47ab
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on May 13, 2019

  1. chit: init at 0.1.12

    lilyball committed May 13, 2019
    Copy the full SHA
    453a37b View commit details

Commits on May 14, 2019

  1. Merge pull request #61428 from lilyball/chit

    chit: init at 0.1.12
    worldofpeace authored May 14, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bc7d17a View commit details
Showing with 49 additions and 0 deletions.
  1. +47 −0 pkgs/development/tools/chit/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
47 changes: 47 additions & 0 deletions pkgs/development/tools/chit/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -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 { };