blob: d87e30579c5a43d6541fd1dfdbe228ba0aa2e9f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ lib
, autoconf-archive
, autoreconfHook
, boost
, fetchFromGitHub
, libtorrent-rasterbar
, libvlc
, openssl
, pkg-config
, stdenv
}:
# VLC does not know where the vlc-bittorrent package is installed.
# make sure to have something like:
# environment.variables.VLC_PLUGIN_PATH = "${pkgs.vlc-bittorrent}";
stdenv.mkDerivation (finalAttrs: {
pname = "vlc-bittorrent";
version = "2.15.0";
src = fetchFromGitHub {
owner = "johang";
repo = "vlc-bittorrent";
rev = "v${finalAttrs.version}";
hash = "sha256-7FHeQYHbMKZJ3yeHqxTTAUwghTje+gEX8gSEJzfG5sQ=";
};
nativeBuildInputs = [
autoconf-archive
autoreconfHook
pkg-config
];
buildInputs = [
boost
libtorrent-rasterbar
libvlc
openssl
];
strictDeps = true;
# It's a library, should not have a desktop file
postFixup = ''
rm -r $out/share/
'';
meta = with lib; {
description = "A bittorrent plugin for VLC";
homepage = "https://github.com/johang/vlc-bittorrent";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.kintrix ];
};
})
|