Merge pull request #108068 from Izorkin/samba-wsdd-fix

wsdd: fix send messages using correct socket
This commit is contained in:
Florian Klink 2020-12-31 22:31:59 +01:00 committed by GitHub
commit 06489ad5f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, makeWrapper, nixosTests, python3 }:
{ stdenv, fetchFromGitHub, makeWrapper, nixosTests, python3, fetchpatch }:
stdenv.mkDerivation rec {
pname = "wsdd";
@ -15,6 +15,15 @@ stdenv.mkDerivation rec {
buildInputs = [ python3 ];
patches = [
(fetchpatch {
# https://github.com/christgau/wsdd/issues/72
name = "fix_send_messages_using_correct_socket.patch";
url = "https://github.com/christgau/wsdd/commit/1ed74fe73a9fe2e2720859e2822116d65e4ffa5b.patch";
sha256 = "1n9bqvh20nhnvnc5pxvzf9kk8nky6rmbmfryg65lfmr1hmg676zg";
})
];
installPhase = ''
install -Dm0755 src/wsdd.py $out/bin/wsdd
wrapProgram $out/bin/wsdd --prefix PYTHONPATH : "$PYTHONPATH"