depot/third_party/nixpkgs/pkgs/tools/audio/unflac/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

34 lines
788 B
Nix

{ lib
, buildGoModule
, fetchFromSourcehut
, ffmpeg
, makeWrapper
}:
buildGoModule rec {
pname = "unflac";
version = "1.1";
src = fetchFromSourcehut {
owner = "~ft";
repo = pname;
rev = version;
sha256 = "sha256-gDgmEEOvsudSYdLUodTuE50+2hZpMqlnaVGanv/rg+U=";
};
vendorHash = "sha256-X3cMhzaf1t+x7D8BVBfQy00rAACDEPmIOezIhKzqOZ8=";
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 ];
};
}