2023-03-30 22:05:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles, makeWrapper, nixosTests, python3 }:
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wsdd";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.8";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "christgau";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-T8/XlQpx4CtNy8LuLwOQBG9muFe9pp5583tDaCT4ReI=";
|
2020-11-24 20:58:05 +00:00
|
|
|
};
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-03-30 22:05:00 +00:00
|
|
|
install -Dm0555 src/wsdd.py $out/bin/wsdd
|
|
|
|
installManPage man/wsdd.8
|
2020-11-24 20:58:05 +00:00
|
|
|
wrapProgram $out/bin/wsdd --prefix PYTHONPATH : "$PYTHONPATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests.samba-wsdd = nixosTests.samba-wsdd;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-24 20:58:05 +00:00
|
|
|
homepage = "https://github.com/christgau/wsdd";
|
|
|
|
description = "A Web Service Discovery (WSD) host daemon for SMB/Samba";
|
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "wsdd";
|
2020-11-24 20:58:05 +00:00
|
|
|
};
|
|
|
|
}
|