flac2all: init at version 5.1
Added initial version of https://github.com/ZivaVatra/flac2all
This commit is contained in:
parent
597e558b14
commit
a6b406e5af
45
pkgs/applications/audio/flac2all/default.nix
Normal file
45
pkgs/applications/audio/flac2all/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ python3Packages, lib, flac, lame, opusTools, vorbis-tools, ffmpeg }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "flac2all";
|
||||
version = "5.1";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "OBjlr7cbSx2WOIfZUNwHy5Hpb2Fmh3vmZdc70JiWsiI=";
|
||||
};
|
||||
|
||||
# Not sure why this is needed, but setup.py expects this to be set
|
||||
postPatch = ''
|
||||
echo ${version} > ./flac2all_pkg/version
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python3Packages.pyzmq
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/flac2all \
|
||||
--set PATH ${lib.makeBinPath [
|
||||
# Hard requirements
|
||||
flac
|
||||
lame
|
||||
# Optional deps depending on encoding types
|
||||
opusTools
|
||||
vorbis-tools
|
||||
ffmpeg
|
||||
]}
|
||||
'';
|
||||
|
||||
# Has no standard tests, so we verify a few imports instead.
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "flac2all_pkg.vorbis" "flac2all_pkg.mp3" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multi process, clustered, FLAC to multi codec audio converter with tagging support";
|
||||
homepage = "https://github.com/ZivaVatra/flac2all";
|
||||
license = licenses.gpl3;
|
||||
# TODO: This has only been tested on Linux, but may work on Mac too.
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -38865,6 +38865,8 @@ with pkgs;
|
||||
|
||||
alsa-scarlett-gui = callPackage ../applications/audio/alsa-scarlett-gui { };
|
||||
|
||||
flac2all = callPackage ../applications/audio/flac2all {};
|
||||
|
||||
tuner = callPackage ../applications/audio/tuner { };
|
||||
|
||||
locate-dominating-file = callPackage ../tools/misc/locate-dominating-file { };
|
||||
|
Loading…
Reference in New Issue
Block a user