2019-12-30 16:31:55 +03:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, libuchardet, pkgconfig
|
2018-07-17 23:11:16 +03:00
|
|
|
, shntool, flac, opusTools, vorbis-tools, mp3gain, lame, wavpack, vorbisgain
|
2017-03-05 18:38:26 +03:00
|
|
|
, gtk3
|
2019-12-30 16:31:55 +03:00
|
|
|
, qtbase, qttools, wrapQtAppsHook
|
2016-05-09 13:50:52 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "flacon";
|
2019-10-07 08:29:10 +03:00
|
|
|
version = "5.5.1";
|
2017-03-05 18:38:26 +03:00
|
|
|
|
2016-05-09 13:50:52 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flacon";
|
|
|
|
repo = "flacon";
|
|
|
|
rev = "v${version}";
|
2019-10-07 08:29:10 +03:00
|
|
|
sha256 = "05pvg5xhc2azwzld08m81r4b2krqdbcbm5lmdvg2zkk67xq9pqyd";
|
2016-05-09 13:50:52 +03:00
|
|
|
};
|
|
|
|
|
2019-12-30 16:31:55 +03:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
|
|
|
|
buildInputs = [ qtbase qttools libuchardet ];
|
2016-05-09 13:50:52 +03:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/flacon \
|
2017-03-05 18:38:26 +03:00
|
|
|
--suffix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}" \
|
2018-07-17 23:11:16 +03:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ shntool flac opusTools vorbis-tools
|
2017-03-05 18:38:26 +03:00
|
|
|
mp3gain lame wavpack vorbisgain ]}"
|
2016-05-09 13:50:52 +03:00
|
|
|
'';
|
|
|
|
|
2017-03-05 18:38:26 +03:00
|
|
|
meta = with stdenv.lib; {
|
2016-05-09 13:50:52 +03:00
|
|
|
description = "Extracts audio tracks from an audio CD image to separate tracks.";
|
|
|
|
homepage = https://flacon.github.io/;
|
2017-03-05 18:38:26 +03:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
2019-12-28 18:17:08 +03:00
|
|
|
maintainers = with maintainers; [ snglth ];
|
2016-05-09 13:50:52 +03:00
|
|
|
};
|
|
|
|
}
|