.files/nix/packages/by-name/audio-lint/package.nix
Léana 江 ebf8468807
tree-wide: format with nixfmt
Another saturday another useless formatter change.
It's my dotfiles, after all

alejandra doesn't handle c-style inline comments well.
2025-11-08 10:15:58 +08:00

25 lines
593 B
Nix

{
rustPlatform,
fetchFromGitea,
}:
rustPlatform.buildRustPackage (
finalAttrs:
let
cargoToml = fromTOML (builtins.readFile (finalAttrs.src + "/Cargo.toml"));
cargoLock = finalAttrs.src + "/Cargo.lock";
in
{
pname = "audio-lint";
version = cargoToml.package.version;
src = fetchFromGitea {
domain = "git.confusedcompiler.org";
owner = "leana8959";
repo = "audio-lint";
rev = "3ea38c85c5f6135958e51ad4ff13a96ccd68a21c";
hash = "sha256-h1SnWAh3FPL5GweOXVXXtp+swZApgecYaWjy7rM/J+w=";
};
cargoLock.lockFile = cargoLock;
}
)