audio-lint: migrate to by-name

This commit is contained in:
Primrose 2025-05-20 17:35:28 +02:00
parent 5a34373cca
commit 0ef714129a
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 19 additions and 7 deletions

View file

@ -0,0 +1,19 @@
{
lib,
rustPlatform,
fetchFromGitea,
}:
rustPlatform.buildRustPackage (finalAttrs: {
name = "audio-lint";
version = lib.substring 0 8 finalAttrs.src.rev;
src = fetchFromGitea {
domain = "git.confusedcompiler.org";
owner = "leana8959";
repo = "audio-lint";
rev = "3ea38c85c5f6135958e51ad4ff13a96ccd68a21c";
hash = "sha256-h1SnWAh3FPL5GweOXVXXtp+swZApgecYaWjy7rM/J+w=";
};
cargoHash = "sha256-hsFUeGPvo3n6/Z35ui3N4qefa4odM0yo1rVBhzL3fLU=";
})

View file

@ -37,11 +37,4 @@ in rec {
"--use-single-width-glyphs"
];
};
audio-lint = pkgs.rustPlatform.buildRustPackage rec {
pname = "audio-lint";
version = lib.substring 0 8 sources.audio-lint.rev;
src = sources.audio-lint;
cargoLock.lockFile = "${src}/Cargo.lock";
};
}