2016-05-09 11:50:52 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, qt5, libuchardet, pkgconfig, makeWrapper
|
2018-07-17 21:11:16 +01:00
|
|
|
, shntool, flac, opusTools, vorbis-tools, mp3gain, lame, wavpack, vorbisgain
|
2017-03-05 15:38:26 +00:00
|
|
|
, gtk3
|
2016-05-09 11:50:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "flacon-${version}";
|
2019-04-30 21:05:35 +01:00
|
|
|
version = "5.4.0";
|
2017-03-05 15:38:26 +00:00
|
|
|
|
2016-05-09 11:50:52 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flacon";
|
|
|
|
repo = "flacon";
|
|
|
|
rev = "v${version}";
|
2019-04-30 21:05:35 +01:00
|
|
|
sha256 = "1j8gzk92kn10yb7rmvrnyq0ipda2swnkmsavqsk5ws0z600p3k93";
|
2016-05-09 11:50:52 +01:00
|
|
|
};
|
|
|
|
|
2017-03-05 15:38:26 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
|
|
|
buildInputs = [ qt5.qtbase qt5.qttools libuchardet ];
|
2016-05-09 11:50:52 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/flacon \
|
2017-03-05 15:38:26 +00:00
|
|
|
--suffix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}" \
|
2018-07-17 21:11:16 +01:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ shntool flac opusTools vorbis-tools
|
2017-03-05 15:38:26 +00:00
|
|
|
mp3gain lame wavpack vorbisgain ]}"
|
2016-05-09 11:50:52 +01:00
|
|
|
'';
|
|
|
|
|
2017-03-05 15:38:26 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-05-09 11:50:52 +01:00
|
|
|
description = "Extracts audio tracks from an audio CD image to separate tracks.";
|
|
|
|
homepage = https://flacon.github.io/;
|
2017-03-05 15:38:26 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ndowens nico202 ];
|
2016-05-09 11:50:52 +01:00
|
|
|
};
|
|
|
|
}
|