depot/third_party/nixpkgs/pkgs/development/libraries/libmpeg2/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

22 lines
663 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "0.5.1";
pname = "libmpeg2";
src = fetchurl {
url = "http://libmpeg2.sourceforge.net/files/${pname}-${version}.tar.gz";
sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny";
};
# Otherwise clang fails with 'duplicate symbol ___sputc'
buildFlags = lib.optional stdenv.isDarwin "CFLAGS=-std=gnu89";
meta = {
homepage = "http://libmpeg2.sourceforge.net/";
description = "Free library for decoding mpeg-2 and mpeg-1 video streams";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ ];
platforms = with lib.platforms; unix;
};
}