diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2024-06-26 11:06:04 -0300 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2024-06-26 11:06:04 -0300 |
commit | ba42623fd59c6845967323bafb0514c769a62d73 (patch) | |
tree | 188db831e1afd609950ed2d093e1fce8760b8ce0 | |
parent | a8a382d77c890e58fffccc61d538f5b38499b16f (diff) |
rtorrent: use multiple outputs, update documentation
-rw-r--r-- | pkgs/by-name/rt/rtorrent/package.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/by-name/rt/rtorrent/package.nix b/pkgs/by-name/rt/rtorrent/package.nix index 86844faa293d9..c7a74aecf660e 100644 --- a/pkgs/by-name/rt/rtorrent/package.nix +++ b/pkgs/by-name/rt/rtorrent/package.nix @@ -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 = { |