mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, substituteAll
|
|
, ffmpeg
|
|
, python3Packages
|
|
, sox
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "r128gain";
|
|
version = "1.0.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "desbma";
|
|
repo = "r128gain";
|
|
rev = version;
|
|
sha256 = "sha256-JyKacDqjIKTNl2GjbJPkgbakF8HR4Jd4czAtOaemDH8=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./ffmpeg-location.patch;
|
|
inherit ffmpeg;
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [ crcmod ffmpeg-python mutagen tqdm ];
|
|
nativeCheckInputs = with python3Packages; [ requests sox ];
|
|
|
|
# Testing downloads media files for testing, which requires the
|
|
# sandbox to be disabled.
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Fast audio loudness scanner & tagger (ReplayGain v2 / R128)";
|
|
mainProgram = "r128gain";
|
|
homepage = "https://github.com/desbma/r128gain";
|
|
license = licenses.lgpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|