mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 09:03:48 +00:00
41 lines
1,011 B
Nix
41 lines
1,011 B
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper, nixosTests, python3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wsdd";
|
|
version = "0.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "christgau";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0lfvpbk1lkri597ac4gz5x4csfyik8axz4b41i03xsqv9bci2vh6";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ python3 ];
|
|
|
|
patches = [
|
|
# Increase timeout to socket urlopen
|
|
# See https://github.com/christgau/wsdd/issues/80#issuecomment-76848906
|
|
./increase_timeout.patch
|
|
];
|
|
|
|
installPhase = ''
|
|
install -Dm0755 src/wsdd.py $out/bin/wsdd
|
|
wrapProgram $out/bin/wsdd --prefix PYTHONPATH : "$PYTHONPATH"
|
|
'';
|
|
|
|
passthru = {
|
|
tests.samba-wsdd = nixosTests.samba-wsdd;
|
|
};
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|