nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 43 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, installShellFiles, makeWrapper, nixosTests, python3 }: 2 3stdenv.mkDerivation rec { 4 pname = "wsdd"; 5 version = "0.7.1"; 6 7 src = fetchFromGitHub { 8 owner = "christgau"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-xfZVGi3OxuRI+Zh6L3Ru4J4j5BB1EAN3fllRCVA/c5o="; 12 }; 13 14 outputs = [ "out" "man" ]; 15 16 nativeBuildInputs = [ installShellFiles makeWrapper ]; 17 18 buildInputs = [ python3 ]; 19 20 patches = [ 21 # Increase timeout to socket urlopen 22 # See https://github.com/christgau/wsdd/issues/80#issuecomment-76848906 23 ./increase_timeout.patch 24 ]; 25 26 installPhase = '' 27 install -Dm0555 src/wsdd.py $out/bin/wsdd 28 installManPage man/wsdd.8 29 wrapProgram $out/bin/wsdd --prefix PYTHONPATH : "$PYTHONPATH" 30 ''; 31 32 passthru = { 33 tests.samba-wsdd = nixosTests.samba-wsdd; 34 }; 35 36 meta = with lib; { 37 homepage = "https://github.com/christgau/wsdd"; 38 description = "A Web Service Discovery (WSD) host daemon for SMB/Samba"; 39 maintainers = with maintainers; [ izorkin ]; 40 license = licenses.mit; 41 platforms = platforms.all; 42 }; 43}