forked from mirrors/nixpkgs
36 lines
1,005 B
Nix
36 lines
1,005 B
Nix
{ stdenv, fetchFromGitHub, buildGoPackage
|
|
, pkgconfig, ffmpeg
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
name = "livepeer-${version}";
|
|
version = "0.2.4";
|
|
|
|
goPackagePath = "github.com/livepeer/go-livepeer";
|
|
goDeps = ./deps.nix;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "livepeer";
|
|
repo = "go-livepeer";
|
|
rev = version;
|
|
sha256 = "07vhw787wq5q4xm7zvswjdsmr20pwfa39wfkgamb7hkrffn3k2ia";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig ffmpeg ];
|
|
|
|
# XXX This removes the -O2 flag, to avoid errors like:
|
|
# cgo-dwarf-inference:2:8: error: enumerator value for '__cgo_enum__0' is not an integer constant
|
|
# This is a workaround for nixpkgs+golang BUG https://github.com/NixOS/nixpkgs/issues/25959
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Official Go implementation of the Livepeer protocol";
|
|
homepage = https://livepeer.org;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ elitak ];
|
|
};
|
|
}
|