diff options
author | kintrix007 <kintrix007@proton.me> | 2024-03-18 17:23:24 +0100 |
---|---|---|
committer | kintrix007 <kintrix007@proton.me> | 2024-03-25 18:30:03 +0100 |
commit | 82abe746cf3c6e7a099d26d7b08a20ef54555158 (patch) | |
tree | 258438ff6982d949535af4d34ca887b9f7679d08 /pkgs/by-name/vl | |
parent | 6e68974cf3c378dc0e91593f7331ed0ffbd537b5 (diff) |
vlc-bittorrent: init at 2.15.0
Diffstat (limited to 'pkgs/by-name/vl')
-rw-r--r-- | pkgs/by-name/vl/vlc-bittorrent/package.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/by-name/vl/vlc-bittorrent/package.nix b/pkgs/by-name/vl/vlc-bittorrent/package.nix new file mode 100644 index 0000000000000..d87e30579c5a4 --- /dev/null +++ b/pkgs/by-name/vl/vlc-bittorrent/package.nix @@ -0,0 +1,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 ]; + }; +}) |