Merge pull request #296950 from kintrix007/add-vlc-bittorrent

vlc-bittorrent: init at 2.15.0
This commit is contained in:
Pol Dellaiera 2024-03-27 09:21:49 +01:00 committed by GitHub
commit a569260ee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 61 additions and 0 deletions

View File

@ -10329,6 +10329,12 @@
githubId = 691290;
name = "Keshav Kini";
};
kintrix = {
email = "kintrix007@proton.me";
github = "kintrix007";
githubId = 60898798;
name = "kintrix";
};
kinzoku = {
email = "kinzokudev4869@gmail.com";
github = "kinzoku-dev";

View File

@ -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 ];
};
})