tokei: migrate to by-name

This commit is contained in:
Primrose 2025-05-20 17:05:59 +02:00
parent bd9049f90a
commit 254dce933b
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 0 additions and 1 deletions

View file

@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
libiconv,
darwin,
zlib,
}: let
rev = "v13.0.0-alpha.8";
in
rustPlatform.buildRustPackage {
pname = "tokei";
version = rev;
src = fetchFromGitHub {
owner = "XAMPPRocky";
repo = "tokei";
inherit rev;
hash = "sha256-jCI9VM3y76RI65E5UGuAPuPkDRTMyi+ydx64JWHcGfE=";
};
cargoHash = "sha256-XvRO5AbPYZVRVxqFmKf2Xn4K9VvZyb3eyJLu/cGrPdI=";
patches = [
./skel.patch
./why3.patch
];
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
darwin.Security
];
checkInputs = lib.optionals stdenv.isDarwin [zlib];
# enable all output formats
buildFeatures = ["all"];
}