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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, cmake, libuchardet, pkg-config, shntool, flac
, opusTools, vorbis-tools, mp3gain, lame, taglib, wavpack, vorbisgain
, monkeysAudio, sox, gtk3, qtbase, qttools, wrapQtAppsHook }:
2016-05-09 10:50:52 +00:00
stdenv.mkDerivation rec {
pname = "flacon";
2023-10-08 21:23:30 +00:00
version = "11.3.0";
2017-03-05 15:38:26 +00:00
2016-05-09 10:50:52 +00:00
src = fetchFromGitHub {
owner = "flacon";
repo = "flacon";
rev = "v${version}";
2023-10-08 21:23:30 +00:00
sha256 = "sha256-jzpD8+zhIbOYgSNsoE1Pay+FiPXtRCd6Zz6HHkzWAkY=";
2016-05-09 10:50:52 +00:00
};
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
2022-06-09 15:35:41 +00:00
buildInputs = [ qtbase qttools libuchardet taglib ];
2016-05-09 10:50:52 +00:00
bin_path = lib.makeBinPath [
shntool
flac
opusTools
vorbis-tools
mp3gain
lame
wavpack
monkeysAudio
vorbisgain
sox
];
2016-05-09 10:50:52 +00:00
postInstall = ''
wrapProgram $out/bin/flacon \
2017-03-05 15:38:26 +00:00
--suffix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}" \
--prefix PATH : "$bin_path";
2016-05-09 10:50:52 +00:00
'';
meta = with lib; {
description =
"Extracts audio tracks from an audio CD image to separate tracks";
mainProgram = "flacon";
homepage = "https://flacon.github.io/";
2017-03-05 15:38:26 +00:00
license = licenses.lgpl21;
platforms = platforms.linux;
2019-12-28 15:17:08 +00:00
maintainers = with maintainers; [ snglth ];
2016-05-09 10:50:52 +00:00
};
}