git.iko.soy/typeable/nixpkgs
on master help sign in
livepeer: init at 0.2.4
commitfaf44ff2dc888af8e4f9f3fd9153f18dcc8b384d authorEric Litak <elitak@gmail.com> dateMon 2 Jul 2018, 00:40 (8 years ago) parenta22ba5f
3 files changed+57
pkgs/servers/livepeer/default.nix+35 pkgs/servers/livepeer/deps.nix+20 pkgs/top-level/all-packages.nix+2
pkgs/servers/livepeer/default.nixnew file+35
@@ -0,0 +1,35 @@
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+}
pkgs/servers/livepeer/deps.nixnew file+20
@@ -0,0 +1,20 @@
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+]
pkgs/top-level/all-packages.nix+2
@@ -12752,6 +12752,8 @@ with pkgs;
1275212752
1275312753 lighttpd = callPackage ../servers/http/lighttpd { };
1275412754
12755+ livepeer = callPackage ../servers/livepeer { ffmpeg = ffmpeg_3; };
12756+
1275512757 lwan = callPackage ../servers/http/lwan { };
1275612758
1275712759 labelImg = callPackage ../applications/science/machine-learning/labelimg { };