summaryrefslogtreecommitdiffstats
path: root/pkgs/development/skaware-packages/s6-networking/default.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-03-04 01:34:38 +0100
committerProfpatsch <mail@profpatsch.de>2024-03-24 14:52:19 +0100
commit7cadc175919016d329c868915f1f1c42fc8fb817 (patch)
treeaae9ab2adea6b8bfe7bcacce4e86445149b77fe7 /pkgs/development/skaware-packages/s6-networking/default.nix
parent70cef84833bd3c91a52983f296eb56270ffcdbfa (diff)
skawarePackages: add manpages to their respective packages
For a while now, we’ve had these separate derivations for the skaware manpages. That was fine in the beginning, because it was not entirely clear whether the manpage project would be long-lived. Given that the collection of third-party manpages is now extensive and updated regularly, plus it is sanctioned by skarnet, we can remove this additional hurdle to using skaware. The buildManPage structure is kept, instead of building them in a separate `default.nix`, we add a field `manpages` to `skawarePackages.buildPackage`, which adds the `"man"` output and copies everything from the manpages output. For backwards-compat, the manpage derivation is exposed in the `passthru` and referenced by the `*-man-pages` attributes. ~~~ The `with skawarePackages;` scope is removed from all packages, and used explicitly for all functions, while packages get added to the package import header.
Diffstat (limited to 'pkgs/development/skaware-packages/s6-networking/default.nix')
-rw-r--r--pkgs/development/skaware-packages/s6-networking/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/skaware-packages/s6-networking/default.nix b/pkgs/development/skaware-packages/s6-networking/default.nix
index 1b8cd4e88fea..f9078351fdcd 100644
--- a/pkgs/development/skaware-packages/s6-networking/default.nix
+++ b/pkgs/development/skaware-packages/s6-networking/default.nix
@@ -1,11 +1,10 @@
-{ lib, skawarePackages
+{ lib, skawarePackages, skalibs, execline, s6, s6-dns
# Whether to build the TLS/SSL tools and what library to use
# acceptable values: "bearssl", "libressl", false
, sslSupport ? "bearssl" , libressl, bearssl
}:
-with skawarePackages;
let
sslSupportEnabled = sslSupport != false;
sslLibs = {
@@ -17,11 +16,19 @@ in
assert sslSupportEnabled -> sslLibs ? ${sslSupport};
-buildPackage {
+skawarePackages.buildPackage {
pname = "s6-networking";
version = "2.7.0.2";
sha256 = "wzxvGyvhb4miGvlGz9BiQqEvmBhMiYt1XdskM4ZxzrE=";
+ manpages = skawarePackages.buildManPages {
+ pname = "s6-networking-man-pages";
+ version = "2.5.1.3.3";
+ sha256 = "02ba5jyfpbib402mfl42pbbdxyjy2vhpiz1b2qdg4ax58yr4jzqk";
+ description = "Port of the documentation for the s6-networking suite to mdoc";
+ maintainers = [ lib.maintainers.sternenseemann ];
+ };
+
description = "A suite of small networking utilities for Unix systems";
outputs = [ "bin" "lib" "dev" "doc" "out" ];