summary refs log tree commit diff
path: root/pkgs/tools/misc/snore/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/snore/default.nix')
-rw-r--r--pkgs/tools/misc/snore/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/misc/snore/default.nix b/pkgs/tools/misc/snore/default.nix
index 92c3de77c84..e9d7d42d772 100644
--- a/pkgs/tools/misc/snore/default.nix
+++ b/pkgs/tools/misc/snore/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch }:
 
 stdenv.mkDerivation rec {
   version = "0.2";
@@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-EOwbRqtQEuGZ+aeCBNVfLUq4m/bFWJTvMDM6a+y74qc=";
   };
 
+  patches = [
+    # Fix POSIX_C_SOURCE macro. Remove with the next release.
+    (fetchpatch {
+      url = "https://github.com/clamiax/snore/commit/284e5aa56e775803d24879954136401a106aa063.patch";
+      sha256 = "sha256-len8E8h9CXC25WB2lmnLLJ0PR903tgllDh9K2RqzQk0=";
+    })
+  ];
+
   makeFlags = [ "PREFIX=${placeholder "out"}" ];
 
   meta = with lib; {