overlays: fix darkwin builds

This commit is contained in:
Timothy DeHerrera 2021-01-03 00:02:28 -07:00
parent 77a5bd36a3
commit 51deae41cc
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
2 changed files with 11 additions and 2 deletions

View file

@ -1,11 +1,11 @@
final: prev: {
# with sway/wayland support
redshift = prev.redshift.overrideAttrs (o: {
redshift = (prev.redshift.overrideAttrs (o: {
src = prev.fetchFromGitHub {
owner = "minus7";
repo = "redshift";
rev = "wayland";
hash = "sha256-pyR7xNdi/83NSoC2WIrX8U+A6nU+vZBlePLXrQZnc1k=";
};
});
})).override { withAppIndicator = prev.stdenv.isLinux; };
}

View file

@ -10,5 +10,14 @@ final: prev: {
hash = "sha256-dzPOuT+v1JtYzvAtqZ/eVWQSYQLAWX3TyS3jXdBmDdg=";
rev = "v${version}";
};
# fix darwin builds
nativeBuildInputs =
if ! prev.stdenv.isLinux then
prev.lib.filter
(drv: ! prev.lib.hasPrefix "wayland" drv.name)
o.nativeBuildInputs
else
o.nativeBuildInputs;
});
}