11 # Use the same stdenv, including clang, as Swift itself
12 # Fixes build issues, see https://github.com/NixOS/nixpkgs/pull/296082 and https://github.com/NixOS/nixpkgs/issues/295322
13 swiftPackages.stdenv.mkDerivation (final: {
14 pname = "dark-mode-notify";
15 version = "unstable-2022-07-18";
17 src = fetchFromGitHub {
19 repo = "dark-mode-notify";
20 rev = "4d7fe211f81c5b67402fad4bed44995344a260d1";
21 hash = "sha256-LsAQ5v5jgJw7KsJnQ3Mh6+LNj1EMHICMoD5WzF3hRmU=";
29 buildInputs = with darwin.apple_sdk.frameworks; [
34 makeFlags = [ "prefix=$(out)" ];
37 description = "Run a script whenever dark mode changes in macOS";
38 homepage = "https://github.com/bouk/dark-mode-notify";
39 # Doesn't build on x86_64 because of some CoreGraphics issue, even with SDK 11.0
40 platforms = [ "aarch64-darwin" ];
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ YorikSar ];
43 mainProgram = "dark-mode-notify";