2022-10-30 01:52:40 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, ffmpeg
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "unflac";
|
2023-07-11 23:58:32 +02:00
|
|
|
version = "1.1";
|
2022-10-30 01:52:40 +02:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~ft";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-11 23:58:32 +02:00
|
|
|
sha256 = "sha256-gDgmEEOvsudSYdLUodTuE50+2hZpMqlnaVGanv/rg+U=";
|
2022-10-30 01:52:40 +02:00
|
|
|
};
|
|
|
|
|
2023-09-13 06:44:46 +02:00
|
|
|
vendorHash = "sha256-X3cMhzaf1t+x7D8BVBfQy00rAACDEPmIOezIhKzqOZ8=";
|
2022-10-30 01:52:40 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/unflac --prefix PATH : "${lib.makeBinPath [ffmpeg]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"A command line tool for fast frame accurate audio image + cue sheet splitting";
|
|
|
|
homepage = "https://sr.ht/~ft/unflac/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ felipeqq2 ];
|
|
|
|
};
|
|
|
|
}
|