livepeer: init at 0.2.4

+57
+35
pkgs/servers/livepeer/default.nix
··· 1 + { stdenv, fetchFromGitHub, buildGoPackage 2 + , pkgconfig, ffmpeg 3 + }: 4 + 5 + buildGoPackage rec { 6 + name = "livepeer-${version}"; 7 + version = "0.2.4"; 8 + 9 + goPackagePath = "github.com/livepeer/go-livepeer"; 10 + goDeps = ./deps.nix; 11 + 12 + src = fetchFromGitHub { 13 + owner = "livepeer"; 14 + repo = "go-livepeer"; 15 + rev = version; 16 + sha256 = "07vhw787wq5q4xm7zvswjdsmr20pwfa39wfkgamb7hkrffn3k2ia"; 17 + }; 18 + 19 + buildInputs = [ pkgconfig ffmpeg ]; 20 + 21 + # XXX This removes the -O2 flag, to avoid errors like: 22 + # cgo-dwarf-inference:2:8: error: enumerator value for '__cgo_enum__0' is not an integer constant 23 + # This is a workaround for nixpkgs+golang BUG https://github.com/NixOS/nixpkgs/issues/25959 24 + hardeningDisable = [ "fortify" ]; 25 + 26 + enableParallelBuilding = true; 27 + 28 + meta = with stdenv.lib; { 29 + description = "Official Go implementation of the Livepeer protocol"; 30 + homepage = http://livepeer.org; 31 + license = licenses.mit; 32 + platforms = platforms.linux; 33 + maintainers = with maintainers; [ elitak ]; 34 + }; 35 + }
+20
pkgs/servers/livepeer/deps.nix
··· 1 + [ 2 + { 3 + goPackagePath = "github.com/golang/glog"; 4 + fetch = { 5 + type = "git"; 6 + url = "https://github.com/golang/glog"; 7 + rev = "23def4e6c14b4da8ac2ed8007337bc5eb5007998"; 8 + sha256 = "0jb2834rw5sykfr937fxi8hxi2zy80sj2bdn9b3jb4b26ksqng30"; 9 + }; 10 + } 11 + { 12 + goPackagePath = "github.com/ericxtang/m3u8"; 13 + fetch = { 14 + type = "git"; 15 + url = "https://github.com/ericxtang/m3u8"; 16 + rev = "575aeb9f754a5dabcc03d4aa0ed05ecaee26499e"; 17 + sha256 = "08811y4kg6rgj40v80cwjcwhy094qrfigdwjsgr8d6bn64cf9fz2"; 18 + }; 19 + } 20 + ]
+2
pkgs/top-level/all-packages.nix
··· 12752 12752 12753 12753 lighttpd = callPackage ../servers/http/lighttpd { }; 12754 12754 12755 + livepeer = callPackage ../servers/livepeer { ffmpeg = ffmpeg_3; }; 12756 + 12755 12757 lwan = callPackage ../servers/http/lwan { }; 12756 12758 12757 12759 labelImg = callPackage ../applications/science/machine-learning/labelimg { };