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