blob: 7978e4864ac45343cd2ab4d3c0eb4a5304679b28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libiconv, libogg
, ffmpeg, glibcLocales, perl, perlPackages }:
stdenv.mkDerivation rec {
pname = "opustags";
version = "1.10.0";
src = fetchFromGitHub {
owner = "fmang";
repo = "opustags";
rev = version;
sha256 = "sha256-2t6fhA1s1sKpHTmaMtK+DZ8xLpS6ntq33b4ycuMc8x8=";
};
nativeBuildInputs = [ cmake pkg-config ]
++ lib.optionals stdenv.isDarwin [ libiconv ];
buildInputs = [ libogg ];
doCheck = true;
nativeCheckInputs = [ ffmpeg glibcLocales perl ]
++ (with perlPackages; [ ListMoreUtils TestDeep ]);
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 ];
license = licenses.bsd3;
mainProgram = "opustags";
};
}
|