2022-06-16 17:23:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-23 02:10:13 +00:00
|
|
|
version = "0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "snore";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clamiax";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-23 02:10:13 +00:00
|
|
|
sha256 = "sha256-EOwbRqtQEuGZ+aeCBNVfLUq4m/bFWJTvMDM6a+y74qc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
patches = [
|
|
|
|
# Fix POSIX_C_SOURCE macro. Remove with the next release.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/clamiax/snore/commit/284e5aa56e775803d24879954136401a106aa063.patch";
|
|
|
|
sha256 = "sha256-len8E8h9CXC25WB2lmnLLJ0PR903tgllDh9K2RqzQk0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "sleep with feedback";
|
|
|
|
homepage = "https://github.com/clamiax/snore";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|