git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #104788 from SuperSandro2000/auto-update/opustags
commit7ce2c5a5f7ca6b1e897b1b99ef8f99a915e5b987 authorSandro <sandro.jaeckel@gmail.com> dateSun 3 Jan 2021, 07:25 (6 years ago) parent115dc319796f66
1 file changed+31−6
pkgs/applications/audio/opustags/default.nix+31−6
pkgs/applications/audio/opustags/default.nix+31−6
@@ -1,24 +1,49 @@
1−{ stdenv, lib, cmake, pkgconfig, libogg, fetchFromGitHub, libiconv }:
1+{ stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, libiconv, libogg
2+, ffmpeg, glibcLocales, perl, perlPackages }:
3+
24stdenv.mkDerivation rec {
35 pname = "opustags";
4− version = "1.4.0";
6+ version = "1.5.1";
57
68 src = fetchFromGitHub {
79 owner = "fmang";
810 repo = "opustags";
911 rev = version;
10− sha256 = "1y0czl72paawy342ff9ickaamkih43k59yfcdw7bnddypyfa7nbg";
12+ sha256 = "1dicv4s395b9gb4jpr0rnxdq9azr45pid62q3x08lb7cvyq3yxbh";
1113 };
1214
15+ patches = [
16+ # Fix building on darwin
17+ (fetchpatch {
18+ url = "https://github.com/fmang/opustags/commit/64fc6f8f6d20e034892e89abff0236c85cae98dc.patch";
19+ sha256 = "1djifzqhf1w51gbpqbndsh3gnl9iizp6hppxx8x2a92i9ns22zpg";
20+ })
21+ (fetchpatch {
22+ url = "https://github.com/fmang/opustags/commit/f98208c1a1d10c15f98b127bbfdf88a7b15b08dc.patch";
23+ sha256 = "1h3v0r336fca0y8zq1vl2wr8gaqs3vvrrckx7pvji4k1jpiqvp38";
24+ })
25+ ];
26+
1327 buildInputs = [ libogg ];
1428
15− nativeBuildInputs = [ cmake pkgconfig ] ++ lib.optional stdenv.isDarwin libiconv;
29+ nativeBuildInputs = [ cmake pkg-config ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
30+
31+ doCheck = true;
32+
33+ checkInputs = [ ffmpeg glibcLocales perl ] ++ (with perlPackages; [ ListMoreUtils ]);
34+
35+ checkPhase = ''
36+ export LANG="en_US.UTF-8"
37+ export LC_ALL="en_US.UTF-8"
38+ make check
39+ '';
1640
17− meta = with lib; {
41+ meta = with stdenv.lib; {
1842 homepage = "https://github.com/fmang/opustags";
1943 description = "Ogg Opus tags editor";
2044 platforms = platforms.all;
21− maintainers = [ maintainers.kmein ];
45+ broken = stdenv.isDarwin;
46+ maintainers = with maintainers; [ kmein SuperSandro2000 ];
2247 license = licenses.bsd3;
2348 };
2449}