nixpkgs/pkgs/applications/audio/flacon/default.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, cmake, libuchardet, pkgconfig, shntool, flac
, opusTools, vorbis-tools, mp3gain, lame, wavpack, vorbisgain, gtk3, qtbase
, qttools, wrapQtAppsHook }:
2016-05-09 13:50:52 +03:00
stdenv.mkDerivation rec {
pname = "flacon";
version = "6.0.0";
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}";
sha256 = "0p5z6rwckda0lkljrrvx6i90fazj53cxg9pasfmi8154j1z72dj2";
2016-05-09 13:50:52 +03:00
};
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
buildInputs = [ qtbase qttools libuchardet ];
2016-05-09 13:50:52 +03:00
bin_path = lib.makeBinPath [
shntool
flac
opusTools
vorbis-tools
mp3gain
lame
wavpack
vorbisgain
];
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}" \
--prefix PATH : "$bin_path";
2016-05-09 13:50:52 +03:00
'';
2017-03-05 18:38:26 +03:00
meta = with stdenv.lib; {
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
};
}