From e8c9c38ddedfa7361fb85d19e236a0b2d108f51d Mon Sep 17 00:00:00 2001 From: Izorkin Date: Mon, 19 Dec 2022 14:12:39 +0300 Subject: [PATCH] wsdd: add man --- pkgs/servers/wsdd/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/wsdd/default.nix b/pkgs/servers/wsdd/default.nix index a0a8421a7c2b..9c6df7fedce4 100644 --- a/pkgs/servers/wsdd/default.nix +++ b/pkgs/servers/wsdd/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, makeWrapper, nixosTests, python3 }: +{ lib, stdenv, fetchFromGitHub, installShellFiles, makeWrapper, nixosTests, python3 }: stdenv.mkDerivation rec { pname = "wsdd"; @@ -11,7 +11,9 @@ stdenv.mkDerivation rec { sha256 = "sha256-9cwzkF2mg6yOIsurLMXTLoEIOsKbPIWMicpWBQ0XVhE="; }; - nativeBuildInputs = [ makeWrapper ]; + outputs = [ "out" "man" ]; + + nativeBuildInputs = [ installShellFiles makeWrapper ]; buildInputs = [ python3 ]; @@ -22,7 +24,8 @@ stdenv.mkDerivation rec { ]; installPhase = '' - install -Dm0755 src/wsdd.py $out/bin/wsdd + install -Dm0555 src/wsdd.py $out/bin/wsdd + installManPage man/wsdd.1 wrapProgram $out/bin/wsdd --prefix PYTHONPATH : "$PYTHONPATH" '';