ef433059a0
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/flacon/versions. These checks were done: - built on NixOS - ran ‘/nix/store/0m9jr6wv7w3imscxq1lha4q9nrajj7xx-flacon-4.1.0/bin/flacon -h’ got 0 exit code - ran ‘/nix/store/0m9jr6wv7w3imscxq1lha4q9nrajj7xx-flacon-4.1.0/bin/flacon --help’ got 0 exit code - ran ‘/nix/store/0m9jr6wv7w3imscxq1lha4q9nrajj7xx-flacon-4.1.0/bin/.flacon-wrapped -h’ got 0 exit code - ran ‘/nix/store/0m9jr6wv7w3imscxq1lha4q9nrajj7xx-flacon-4.1.0/bin/.flacon-wrapped --help’ got 0 exit code - found 4.1.0 with grep in /nix/store/0m9jr6wv7w3imscxq1lha4q9nrajj7xx-flacon-4.1.0 - directory tree listing: https://gist.github.com/5db6cc1fd7c7f049d13a305eb9ab5199
34 lines
1 KiB
Nix
34 lines
1 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.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "flacon";
|
|
repo = "flacon";
|
|
rev = "v${version}";
|
|
sha256 = "1sw2v2w3s79lbzhkf96m8lwvag824am7rwfzzsi8bz6sa6krmj0m";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|