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