forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
214 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14428,6 +14428,12 @@ | |
githubId = 139251; | ||
name = "Tom Hunger"; | ||
}; | ||
tehmatt = { | ||
name = "tehmatt"; | ||
email = "[email protected]"; | ||
github = "tehmatt"; | ||
githubId = 3358866; | ||
}; | ||
tejasag = { | ||
name = "Tejas Agarwal"; | ||
email = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.