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