.files/nix/packages/by-name/audio-lint/package.nix

21 lines
557 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;
})