nixpkgs/pkgs/tools/audio/unflac/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
816 B
Nix
Raw Permalink Normal View History

2022-10-30 01:52:40 +02:00
{ lib
, buildGoModule
, fetchFromSourcehut
, ffmpeg
, makeWrapper
}:
buildGoModule rec {
pname = "unflac";
2024-04-11 18:05:24 +02:00
version = "1.3";
2022-10-30 01:52:40 +02:00
src = fetchFromSourcehut {
owner = "~ft";
repo = pname;
rev = version;
2024-04-11 18:05:24 +02:00
sha256 = "sha256-xJEVrzooNcS3zEKeF6DB7ZRZEjHfC7dGKgQfswxbD+U=";
2022-10-30 01:52:40 +02:00
};
2023-12-27 00:20:59 +01:00
vendorHash = "sha256-IQHxEYv6l8ORoX+a3Szox9tS2fyBk0tpK+Q1AsWohX0=";
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 ];
2023-11-23 22:09:35 +01:00
mainProgram = "unflac";
2022-10-30 01:52:40 +02:00
};
}