depot/third_party/nixpkgs/pkgs/servers/wsdd/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
961 B
Nix

{ lib, stdenv, fetchFromGitHub, installShellFiles, makeWrapper, nixosTests, python3 }:
stdenv.mkDerivation rec {
pname = "wsdd";
version = "0.8";
src = fetchFromGitHub {
owner = "christgau";
repo = pname;
rev = "v${version}";
hash = "sha256-T8/XlQpx4CtNy8LuLwOQBG9muFe9pp5583tDaCT4ReI=";
};
outputs = [ "out" "man" ];
nativeBuildInputs = [ installShellFiles makeWrapper ];
buildInputs = [ python3 ];
installPhase = ''
install -Dm0555 src/wsdd.py $out/bin/wsdd
installManPage man/wsdd.8
wrapProgram $out/bin/wsdd --prefix PYTHONPATH : "$PYTHONPATH"
'';
passthru = {
tests.samba-wsdd = nixosTests.samba-wsdd;
};
meta = with lib; {
homepage = "https://github.com/christgau/wsdd";
description = "Web Service Discovery (WSD) host daemon for SMB/Samba";
maintainers = with maintainers; [ izorkin ];
license = licenses.mit;
platforms = platforms.all;
mainProgram = "wsdd";
};
}