wsdd: fix send messages using correct socket

This commit is contained in:
Izorkin 2020-12-31 21:12:23 +03:00
parent 72653c1761
commit 5e343ed5a0
No known key found for this signature in database
GPG key ID: 1436C1B3F3679F09

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"