mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 10:37:32 +00:00
rtorrent: use multiple outputs, update documentation
This commit is contained in:
parent
a8a382d77c
commit
ba42623fd5
@ -1,10 +1,11 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, autoconf-archive
|
||||
, autoreconfHook
|
||||
, cppunit
|
||||
, curl
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, libsigcxx
|
||||
, libtool
|
||||
, libtorrent
|
||||
@ -28,6 +29,8 @@ stdenv.mkDerivation {
|
||||
hash = "sha256-OXOZSMuNAU+VGwNyyfzcmkTRjDJq9HsKUNxZDYpSvFQ=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
passthru = {
|
||||
inherit libtorrent;
|
||||
};
|
||||
@ -35,6 +38,7 @@ stdenv.mkDerivation {
|
||||
nativeBuildInputs = [
|
||||
autoconf-archive
|
||||
autoreconfHook
|
||||
installShellFiles
|
||||
pkg-config
|
||||
];
|
||||
|
||||
@ -65,9 +69,8 @@ stdenv.mkDerivation {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/man/man1 $out/share/doc/rtorrent
|
||||
mv doc/old/rtorrent.1 $out/share/man/man1/rtorrent.1
|
||||
mv doc/rtorrent.rc $out/share/doc/rtorrent/rtorrent.rc
|
||||
installManPage doc/old/rtorrent.1
|
||||
install -Dm644 doc/rtorrent.rc-example -t $out/share/doc/rtorrent/rtorrent.rc
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user