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