nixpkgs/pkgs/development/misc/loc/default.nix
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00

27 lines
593 B
Nix

{ lib, fetchFromGitHub, rustPlatform }:
with rustPlatform;
buildRustPackage rec {
version = "0.4.1";
pname = "loc";
src = fetchFromGitHub {
owner = "cgag";
repo = "loc";
rev = "v${version}";
sha256 = "0086asrx48qlmc484pjz5r5znli85q6qgpfbd81gjlzylj7f57gg";
};
cargoSha256 = "1qfqhqimp56g34bir30zgl273yssrbmwf1h8h8yvdpzkybpd92gx";
meta = with lib; {
homepage = "https://github.com/cgag/loc";
description = "Count lines of code quickly";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
platforms = platforms.unix;
};
}