1 { lib, stdenv, fetchFromGitHub, installShellFiles, makeWrapper, nixosTests, python3 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-T8/XlQpx4CtNy8LuLwOQBG9muFe9pp5583tDaCT4ReI=";
14 outputs = [ "out" "man" ];
16 nativeBuildInputs = [ installShellFiles makeWrapper ];
18 buildInputs = [ python3 ];
21 install -Dm0555 src/wsdd.py $out/bin/wsdd
22 installManPage man/wsdd.8
23 wrapProgram $out/bin/wsdd --prefix PYTHONPATH : "$PYTHONPATH"
27 tests.samba-wsdd = nixosTests.samba-wsdd;
31 homepage = "https://github.com/christgau/wsdd";
32 description = "A Web Service Discovery (WSD) host daemon for SMB/Samba";
33 maintainers = with maintainers; [ izorkin ];
34 license = licenses.mit;
35 platforms = platforms.all;