diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-11-26 01:16:31 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-12-04 03:10:48 +0100 |
commit | e0090f93e941bf915f5af832a478f101f41e2ade (patch) | |
tree | e16298128557cfacfdf8b8cf1a2f580c4f335c63 /pkgs/applications/audio/opustags/default.nix | |
parent | 211a84e410e99389f2f6add53da1f37c0231b715 (diff) |
opustags: Fix some build failures on darwin, enable tests
Diffstat (limited to 'pkgs/applications/audio/opustags/default.nix')
-rw-r--r-- | pkgs/applications/audio/opustags/default.nix | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/pkgs/applications/audio/opustags/default.nix b/pkgs/applications/audio/opustags/default.nix index 630f7b171e8d..65836582feb4 100644 --- a/pkgs/applications/audio/opustags/default.nix +++ b/pkgs/applications/audio/opustags/default.nix @@ -1,4 +1,6 @@ -{ stdenv, lib, cmake, pkgconfig, libogg, fetchFromGitHub, libiconv }: +{ stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, libiconv, libogg +, ffmpeg, glibcLocales, perl, perlPackages }: + stdenv.mkDerivation rec { pname = "opustags"; version = "1.5.1"; @@ -10,14 +12,37 @@ stdenv.mkDerivation rec { sha256 = "1dicv4s395b9gb4jpr0rnxdq9azr45pid62q3x08lb7cvyq3yxbh"; }; + patches = [ + # Fix building on darwin + (fetchpatch { + url = "https://github.com/fmang/opustags/commit/64fc6f8f6d20e034892e89abff0236c85cae98dc.patch"; + sha256 = "1djifzqhf1w51gbpqbndsh3gnl9iizp6hppxx8x2a92i9ns22zpg"; + }) + (fetchpatch { + url = "https://github.com/fmang/opustags/commit/f98208c1a1d10c15f98b127bbfdf88a7b15b08dc.patch"; + sha256 = "1h3v0r336fca0y8zq1vl2wr8gaqs3vvrrckx7pvji4k1jpiqvp38"; + }) + ]; + buildInputs = [ libogg ]; - nativeBuildInputs = [ cmake pkgconfig ] ++ lib.optional stdenv.isDarwin libiconv; + nativeBuildInputs = [ cmake pkg-config ] ++ stdenv.lib.optional stdenv.isDarwin libiconv; + + doCheck = true; + + checkInputs = [ 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; { + meta = with stdenv.lib; { homepage = "https://github.com/fmang/opustags"; description = "Ogg Opus tags editor"; platforms = platforms.all; + broken = stdenv.isDarwin; maintainers = [ maintainers.kmein ]; license = licenses.bsd3; }; |