git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #91159 from Anton-Latukha/upd-mp4v2-4.1.3

mp4v2: 2.0.0 -> 4.1.3

commitd8d19f249793966d1cce391d54203cc717764e63 authorDaniël de Kok <me@danieldk.eu> dateWed 24 Jun 2020, 13:04 (6 years ago) parentc56e688c281c84
1 file changed+15−15
pkgs/development/libraries/mp4v2/default.nix+15−15
pkgs/development/libraries/mp4v2/default.nix+15−15
@@ -1,39 +1,39 @@
1−{ stdenv, lib, fetchurl }:
1+{ stdenv, lib, fetchFromGitHub, fetchurl }:
22
33stdenv.mkDerivation rec {
4− name = "mp4v2-2.0.0";
5−
6− src = fetchurl {
7− url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${name}.tar.bz2";
8− sha256 = "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683";
4+ pname = "mp4v2";
5+ version = "4.1.3";
6+
7+ src = fetchFromGitHub {
8+ # 2020-06-20: THE current upstream, maintained and used in distros fork.
9+ owner = "TechSmith";
10+ repo = "mp4v2";
11+ rev = "Release-ThirdParty-MP4v2-${version}";
12+ sha256 = "053a0lgy819sbz92cfkq0vmkn2ky39bva554pj4ypky1j6vs04fv";
913 };
1014
1115 patches = [
1216 (fetchurl {
13− name = "gcc-7.patch";
14− url = "https://src.fedoraproject.org/cgit/rpms/libmp4v2.git/plain/"
15− + "0004-Fix-GCC7-build.patch?id=d7aeedabb";
17+ # 2020-06-19: NOTE: # Fix build with C++11
18+ # Close when https://github.com/TechSmith/mp4v2/pull/36 merged/closed.
19+ url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/libmp4v2-c++11.patch?id=203f5a72bc97ffe089b424c47b07dd9eaea35713";
1620 sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w";
1721 })
1822 ];
1923
20− buildFlags = [ "CXXFLAGS=-std=c++03" ];
21−
2224 # `faac' expects `mp4.h'.
2325 postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
2426
25− hardeningDisable = [ "format" ];
26−
2727 enableParallelBuilding = true;
2828
2929 meta = {
30− description = "Abandoned library. Provides functions to read, create, and modify mp4 files";
30+ description = "Provides functions to read, create, and modify mp4 files";
3131 longDescription = ''
3232 MP4v2 library provides an API to work with mp4 files
3333 as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems.
3434 This container format is derived from Apple's QuickTime format.
3535 '';
36− homepage = "https://code.google.com/archive/p/mp4v2/";
36+ homepage = "https://github.com/TechSmith/mp4v2";
3737 maintainers = [ lib.maintainers.Anton-Latukha ];
3838 platforms = lib.platforms.unix;
3939 license = lib.licenses.mpl11;