062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
27 lines
782 B
Nix
27 lines
782 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tokei";
|
|
version = "9.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "XAMPPRocky";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0gz8m5j9p7hwylyl7cdxbli9rpy1p6lsrbym4zk647819pg4k1jp";
|
|
};
|
|
|
|
cargoSha256 = "19h0ybi9qq5shvr7zix0gb24a29lqkvyfc5xbgps8wqgfrhx4nqa";
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
|
libiconv darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Program that displays statistics about your code";
|
|
homepage = https://github.com/XAMPPRocky/tokei;
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ gebner ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|