21adaec5fb
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0/bin/flacon -h` got 0 exit code - ran `/nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0/bin/flacon --help` got 0 exit code - ran `/nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0/bin/flacon help` got 0 exit code - ran `/nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0/bin/flacon --version` and found version 4.0.0 - ran `/nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0/bin/.flacon-wrapped -h` got 0 exit code - ran `/nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0/bin/.flacon-wrapped --help` got 0 exit code - ran `/nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0/bin/.flacon-wrapped --version` and found version 4.0.0 - found 4.0.0 with grep in /nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0 - found 4.0.0 in filename of file in /nix/store/sfixg95yp8qsdhilwcf51g7380q33x7s-flacon-4.0.0
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{ stdenv, lib, fetchFromGitHub, cmake, qt5, libuchardet, pkgconfig, makeWrapper
|
|
, shntool, flac, opusTools, vorbisTools, mp3gain, lame, wavpack, vorbisgain
|
|
, gtk3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "flacon-${version}";
|
|
version = "4.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "flacon";
|
|
repo = "flacon";
|
|
rev = "v${version}";
|
|
sha256 = "0l0xbzpy4nnr08z7gqvb4ngrjwzpspa382cbcrpkya3nd40987kr";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
|
buildInputs = [ qt5.qtbase qt5.qttools libuchardet ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/flacon \
|
|
--suffix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}" \
|
|
--prefix PATH : "${lib.makeBinPath [ shntool flac opusTools vorbisTools
|
|
mp3gain lame wavpack vorbisgain ]}"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Extracts audio tracks from an audio CD image to separate tracks.";
|
|
homepage = https://flacon.github.io/;
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ndowens nico202 ];
|
|
};
|
|
}
|