mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
40 lines
785 B
Nix
40 lines
785 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
libiconv,
|
|
darwin,
|
|
zlib,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: let
|
|
cargoToml = fromTOML (builtins.readFile (finalAttrs.src + "/Cargo.toml"));
|
|
cargoLock = finalAttrs.src + "/Cargo.lock";
|
|
in {
|
|
pname = "tokei";
|
|
version = cargoToml.package.version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "XAMPPRocky";
|
|
repo = "tokei";
|
|
rev = "v13.0.0-alpha.8";
|
|
hash = "sha256-jCI9VM3y76RI65E5UGuAPuPkDRTMyi+ydx64JWHcGfE=";
|
|
};
|
|
|
|
cargoLock.lockFile = cargoLock;
|
|
|
|
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"];
|
|
})
|