mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
85f96822a0
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.
26 lines
593 B
Nix
26 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;
|
|
};
|
|
}
|
|
|