From a2a777538d971c6b01c6e54af89ddd6567c055e8 Mon Sep 17 00:00:00 2001 From: Felipe Silva Date: Sat, 29 Oct 2022 20:52:40 -0300 Subject: [PATCH] unflac: init at 1.0 --- pkgs/tools/audio/unflac/default.nix | 34 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/audio/unflac/default.nix diff --git a/pkgs/tools/audio/unflac/default.nix b/pkgs/tools/audio/unflac/default.nix new file mode 100644 index 000000000000..2e22b81cc599 --- /dev/null +++ b/pkgs/tools/audio/unflac/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5bd8dd7d331c..ef335956c6ec 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 {