mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
audio-lint: migrate to by-name
This commit is contained in:
parent
5a34373cca
commit
0ef714129a
2 changed files with 19 additions and 7 deletions
19
nix/packages/by-name/audio-lint/package.nix
Normal file
19
nix/packages/by-name/audio-lint/package.nix
Normal 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=";
|
||||
})
|
||||
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue