libcec: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2022-01-04 16:38:30 +01:00
parent dc2909ec58
commit 0c8ea70368

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, cmake, pkg-config, udev, libcec_platform, libraspberrypi ? null }: { lib, stdenv, fetchFromGitHub, cmake, pkg-config, udev, libcec_platform, libraspberrypi ? null }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libcec"; pname = "libcec";
version = "6.0.2"; version = "6.0.2";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz"; owner = "Pulse-Eight";
sha256 = "0xrkrcgfgr5r8r0854bw3i9jbq4jmf8nzc5vrrx2sxzvlkbrc1h9"; repo = "libcec";
rev = "libcec-${version}";
sha256 = "sha256-OWqCn7Z0KG8sLlfMWd0btJIFJs79ET3Y1AV/y/Kj2TU=";
}; };
nativeBuildInputs = [ pkg-config cmake ]; nativeBuildInputs = [ pkg-config cmake ];