mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
tokei: migrate to by-name
This commit is contained in:
parent
bd9049f90a
commit
254dce933b
4 changed files with 0 additions and 1 deletions
39
nix/packages/by-name/tokei/package.nix
Normal file
39
nix/packages/by-name/tokei/package.nix
Normal 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"];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue