depot/third_party/nixpkgs/pkgs/tools/audio/unflac/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

35 lines
816 B
Nix

{ lib
, buildGoModule
, fetchFromSourcehut
, ffmpeg
, makeWrapper
}:
buildGoModule rec {
pname = "unflac";
version = "1.3";
src = fetchFromSourcehut {
owner = "~ft";
repo = pname;
rev = version;
sha256 = "sha256-xJEVrzooNcS3zEKeF6DB7ZRZEjHfC7dGKgQfswxbD+U=";
};
vendorHash = "sha256-IQHxEYv6l8ORoX+a3Szox9tS2fyBk0tpK+Q1AsWohX0=";
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 ];
mainProgram = "unflac";
};
}