nixpkgs/pkgs/servers/wsdd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-19 14:12:39 +03:00
{ lib, stdenv, fetchFromGitHub, installShellFiles, makeWrapper, nixosTests, python3 }:
2020-11-21 22:33:28 +03:00
stdenv.mkDerivation rec {
pname = "wsdd";
2021-12-05 20:24:29 +03:00
version = "0.7.0";
2020-11-21 22:33:28 +03:00
src = fetchFromGitHub {
owner = "christgau";
repo = pname;
rev = "v${version}";
2021-12-05 20:24:29 +03:00
sha256 = "sha256-9cwzkF2mg6yOIsurLMXTLoEIOsKbPIWMicpWBQ0XVhE=";
2020-11-21 22:33:28 +03:00
};
2022-12-19 14:12:39 +03:00
outputs = [ "out" "man" ];
nativeBuildInputs = [ installShellFiles makeWrapper ];
2020-11-21 22:33:28 +03:00
buildInputs = [ python3 ];
patches = [
2021-09-26 11:44:37 +03:00
# Increase timeout to socket urlopen
# See https://github.com/christgau/wsdd/issues/80#issuecomment-76848906
./increase_timeout.patch
];
2020-11-21 22:33:28 +03:00
installPhase = ''
2022-12-19 14:12:39 +03:00
install -Dm0555 src/wsdd.py $out/bin/wsdd
installManPage man/wsdd.1
2020-11-21 22:33:28 +03:00
wrapProgram $out/bin/wsdd --prefix PYTHONPATH : "$PYTHONPATH"
'';
passthru = {
tests.samba-wsdd = nixosTests.samba-wsdd;
};
meta = with lib; {
2020-11-21 22:33:28 +03: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;
};
}