Skip to content

Commit

Permalink
unflac: init at 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeqq2 authored and ehmry committed Nov 3, 2022
1 parent 2d549da commit a2a7775
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/tools/audio/unflac/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, buildGoModule
, fetchFromSourcehut
, ffmpeg
, makeWrapper
}:

buildGoModule rec {
pname = "unflac";
version = "1.0";

src = fetchFromSourcehut {
owner = "~ft";
repo = pname;
rev = version;
sha256 = "1vlwlm895mcvmxaxcid3vfji1zi9wjchz7divm096na4whj35cc4";
};

vendorSha256 = "sha256-QqLjz1X4uVpxhYXb/xIBwuLUhRaqwz2GDUPjBTS4ut0=";

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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,8 @@ with pkgs;

ttchat = callPackage ../tools/misc/ttchat { };

unflac = callPackage ../tools/audio/unflac { };

veikk-linux-driver-gui = libsForQt5.callPackage ../tools/misc/veikk-linux-driver-gui { };

ventoy-bin = callPackage ../tools/cd-dvd/ventoy-bin {
Expand Down

0 comments on commit a2a7775

Please sign in to comment.