mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
libcec: 2.2.0 -> 3.0.1
Also adds the libcec_platform library which is a new dependency.
This commit is contained in:
parent
5ef9a427cf
commit
c94bf0e8b1
@ -1,16 +1,18 @@
|
||||
{ stdenv, fetchurl, autoreconfHook, pkgconfig, udev }:
|
||||
{ stdenv, fetchurl, cmake, pkgconfig, udev, libcec_platform }:
|
||||
|
||||
let version = "2.2.0"; in
|
||||
let version = "3.0.1"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libcec-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Pulse-Eight/libcec/archive/libcec-${version}-repack.tar.gz";
|
||||
sha256 = "1kdfak8y96v14d5vp2apkjjs0fvvim9phc0nkhlq5pjlagk8v32x";
|
||||
url = "https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz";
|
||||
sha256 = "0gi5gq8pz6vfdx80pimx23d5g243zzgmc7s8wpb686csjk470dky";
|
||||
};
|
||||
|
||||
buildInputs = [ autoreconfHook pkgconfig udev ];
|
||||
buildInputs = [ cmake pkgconfig udev libcec_platform ];
|
||||
|
||||
cmakeFlags = [ "-DBUILD_SHARED_LIBS=1" ];
|
||||
|
||||
# Fix dlopen path
|
||||
patchPhase = ''
|
||||
|
23
pkgs/development/libraries/libcec/platform.nix
Normal file
23
pkgs/development/libraries/libcec/platform.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchurl, cmake }:
|
||||
|
||||
let version = "1.0.10"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libcec-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Pulse-Eight/platform/archive/${version}.tar.gz";
|
||||
sha256 = "1kdmi9b62nky4jrb5519ddnw5n7s7m6qyj7rzhg399f0n6f278vb";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Platform library for libcec and Kodi addons";
|
||||
homepage = "https://github.com/Pulse-Eight/platform";
|
||||
repositories.git = "https://github.com/Pulse-Eight/libcec.git";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.titanous ];
|
||||
};
|
||||
}
|
@ -6764,6 +6764,7 @@ let
|
||||
else libcanberra;
|
||||
|
||||
libcec = callPackage ../development/libraries/libcec { };
|
||||
libcec_platform = callPackage ../development/libraries/libcec/platform.nix { };
|
||||
|
||||
libcello = callPackage ../development/libraries/libcello {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user