38 lines
959 B
Nix
38 lines
959 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libiconv, libogg
|
|
, ffmpeg, glibcLocales, perl, perlPackages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opustags";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fmang";
|
|
repo = "opustags";
|
|
rev = version;
|
|
sha256 = "sha256-qxtTJ4Hl2ccL+rhONeoOfV6ZyJaWaVDPMsXYJkXCWkY=";
|
|
};
|
|
|
|
buildInputs = [ libogg ];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
|
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [ ffmpeg glibcLocales perl ] ++ (with perlPackages; [ ListMoreUtils ]);
|
|
|
|
checkPhase = ''
|
|
export LANG="en_US.UTF-8"
|
|
export LC_ALL="en_US.UTF-8"
|
|
make check
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/fmang/opustags";
|
|
description = "Ogg Opus tags editor";
|
|
platforms = platforms.all;
|
|
broken = stdenv.isDarwin;
|
|
maintainers = with maintainers; [ kmein SuperSandro2000 ];
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|