mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
flacon: 12.0.0 -> 13.0.2 (#544038)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
cmake,
|
||||
libuchardet,
|
||||
pkg-config,
|
||||
shntool,
|
||||
faac,
|
||||
flac,
|
||||
opus-tools,
|
||||
vorbis-tools,
|
||||
@@ -17,53 +17,67 @@
|
||||
monkeys-audio,
|
||||
sox,
|
||||
gtk3,
|
||||
libsForQt5,
|
||||
qt6,
|
||||
ttaenc,
|
||||
withFaac ? false,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "flacon";
|
||||
version = "12.0.0";
|
||||
version = "13.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "flacon";
|
||||
repo = "flacon";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-r9SdQg6JTMoGxO2xUtkkBe5F5cajnsndZEq20BjJGuU=";
|
||||
hash = "sha256-7UcZJ/npoAYRUUYUUkq/TisCDWShWcjalXACwCOsOmc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
libsForQt5.wrapQtAppsHook
|
||||
qt6.wrapQtAppsHook
|
||||
];
|
||||
buildInputs = [
|
||||
libsForQt5.qtbase
|
||||
libsForQt5.qttools
|
||||
qt6.qtbase
|
||||
qt6.qttools
|
||||
libuchardet
|
||||
taglib
|
||||
];
|
||||
|
||||
bin_path = lib.makeBinPath [
|
||||
shntool
|
||||
flac
|
||||
opus-tools
|
||||
vorbis-tools
|
||||
mp3gain
|
||||
lame
|
||||
wavpack
|
||||
monkeys-audio
|
||||
vorbisgain
|
||||
sox
|
||||
];
|
||||
bin_path = lib.makeBinPath (
|
||||
[
|
||||
flac
|
||||
opus-tools
|
||||
vorbis-tools
|
||||
mp3gain
|
||||
lame
|
||||
ttaenc
|
||||
wavpack
|
||||
monkeys-audio
|
||||
vorbisgain
|
||||
sox
|
||||
]
|
||||
++ lib.optional withFaac faac
|
||||
);
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/flacon \
|
||||
--suffix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}" \
|
||||
--prefix PATH : "$bin_path";
|
||||
'';
|
||||
qtWrapperArgs = [
|
||||
"--suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}"
|
||||
"--prefix PATH : ${finalAttrs.bin_path}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Extracts audio tracks from an audio CD image to separate tracks";
|
||||
longDescription = ''
|
||||
Flacon extracts individual tracks from one big audio file containing the
|
||||
entire album of music and saves them as separate audio files. To do this,
|
||||
it uses information from the appropriate CUE file. Besides, Flacon makes
|
||||
it possible to conveniently revise or specify tags both for all tracks
|
||||
at once or for each tag separately.
|
||||
|
||||
Supported input formats: WAV, FLAC, APE, WavPack, True Audio (TTA)
|
||||
Supported output formats: FLAC, WAV, WavPack, AAC, OGG or MP3
|
||||
'';
|
||||
mainProgram = "flacon";
|
||||
homepage = "https://flacon.github.io/";
|
||||
license = lib.licenses.lgpl21;
|
||||
|
||||
Reference in New Issue
Block a user