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 {
pname = "libcec";
version = "6.0.2";
src = fetchurl {
url = "https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz";
sha256 = "0xrkrcgfgr5r8r0854bw3i9jbq4jmf8nzc5vrrx2sxzvlkbrc1h9";
src = fetchFromGitHub {
owner = "Pulse-Eight";
repo = "libcec";
rev = "libcec-${version}";
sha256 = "sha256-OWqCn7Z0KG8sLlfMWd0btJIFJs79ET3Y1AV/y/Kj2TU=";
};
nativeBuildInputs = [ pkg-config cmake ];