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
625 B
Nix
27 lines
625 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
version = "0.4.1";
|
|
name = "loc-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cgag";
|
|
repo = "loc";
|
|
rev = "v${version}";
|
|
sha256 = "0086asrx48qlmc484pjz5r5znli85q6qgpfbd81gjlzylj7f57gg";
|
|
};
|
|
|
|
cargoSha256 = "06iqzpg5jz1xd2amajvlf7yaz9kr3q2ipbhx71whvv9mwplmxmbi";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/cgag/loc;
|
|
description = "Count lines of code quickly";
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|