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