Loading pkgs/by-name/li/libtorrent-rasterbar-2_0_x/package.nix +16 −19 Original line number Diff line number Diff line { lib, stdenv, boost, fetchFromGitHub, cmake, zlib, boost, openssl, python3, ncurses, }: let version = "2.0.11"; # Make sure we override python, so the correct version is chosen boostPython = boost.override { enablePython = true; python = python3; }; in stdenv.mkDerivation { stdenv.mkDerivation (finalAttrs: { pname = "libtorrent-rasterbar"; inherit version; version = "2.0.11"; src = fetchFromGitHub { owner = "arvidn"; repo = "libtorrent"; tag = "v${version}"; hash = "sha256-iph42iFEwP+lCWNPiOJJOejISFF6iwkGLY9Qg8J4tyo="; tag = "v${finalAttrs.version}"; fetchSubmodules = true; hash = "sha256-iph42iFEwP+lCWNPiOJJOejISFF6iwkGLY9Qg8J4tyo="; }; nativeBuildInputs = [ Loading @@ -52,7 +47,8 @@ stdenv.mkDerivation { # https://github.com/arvidn/libtorrent/issues/6865 postPatch = '' substituteInPlace cmake/Modules/GeneratePkgConfig/target-compile-settings.cmake.in \ --replace-fail 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@")' \ --replace-fail \ 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@")' \ 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@") set(_INSTALL_FULL_LIBDIR "@CMAKE_INSTALL_FULL_LIBDIR@")' '' Loading Loading @@ -87,14 +83,15 @@ stdenv.mkDerivation { ]; cmakeFlags = [ "-Dpython-bindings=on" (lib.cmakeBool "python-bindings" true) ]; meta = with lib; { meta = { homepage = "https://libtorrent.org/"; description = "C++ BitTorrent implementation focusing on efficiency and scalability"; license = licenses.bsd3; description = "Efficient feature complete C++ bittorrent implementation"; changelog = "https://github.com/arvidn/libtorrent/blob/${finalAttrs.src.tag}/ChangeLog"; license = lib.licenses.bsd3; maintainers = [ ]; platforms = platforms.unix; platforms = lib.platforms.unix; }; } }) Loading
pkgs/by-name/li/libtorrent-rasterbar-2_0_x/package.nix +16 −19 Original line number Diff line number Diff line { lib, stdenv, boost, fetchFromGitHub, cmake, zlib, boost, openssl, python3, ncurses, }: let version = "2.0.11"; # Make sure we override python, so the correct version is chosen boostPython = boost.override { enablePython = true; python = python3; }; in stdenv.mkDerivation { stdenv.mkDerivation (finalAttrs: { pname = "libtorrent-rasterbar"; inherit version; version = "2.0.11"; src = fetchFromGitHub { owner = "arvidn"; repo = "libtorrent"; tag = "v${version}"; hash = "sha256-iph42iFEwP+lCWNPiOJJOejISFF6iwkGLY9Qg8J4tyo="; tag = "v${finalAttrs.version}"; fetchSubmodules = true; hash = "sha256-iph42iFEwP+lCWNPiOJJOejISFF6iwkGLY9Qg8J4tyo="; }; nativeBuildInputs = [ Loading @@ -52,7 +47,8 @@ stdenv.mkDerivation { # https://github.com/arvidn/libtorrent/issues/6865 postPatch = '' substituteInPlace cmake/Modules/GeneratePkgConfig/target-compile-settings.cmake.in \ --replace-fail 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@")' \ --replace-fail \ 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@")' \ 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@") set(_INSTALL_FULL_LIBDIR "@CMAKE_INSTALL_FULL_LIBDIR@")' '' Loading Loading @@ -87,14 +83,15 @@ stdenv.mkDerivation { ]; cmakeFlags = [ "-Dpython-bindings=on" (lib.cmakeBool "python-bindings" true) ]; meta = with lib; { meta = { homepage = "https://libtorrent.org/"; description = "C++ BitTorrent implementation focusing on efficiency and scalability"; license = licenses.bsd3; description = "Efficient feature complete C++ bittorrent implementation"; changelog = "https://github.com/arvidn/libtorrent/blob/${finalAttrs.src.tag}/ChangeLog"; license = lib.licenses.bsd3; maintainers = [ ]; platforms = platforms.unix; platforms = lib.platforms.unix; }; } })