3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #243280 from YorikSar/dark-mode-notify-init

dark-mode-notify: init at 2022-07-18
This commit is contained in:
Silvan Mosberger 2023-08-11 16:06:55 +02:00 committed by GitHub
commit dcb50597cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 0 deletions

View file

@ -18569,6 +18569,13 @@
githubId = 647076;
name = "Yorick van Pelt";
};
YorikSar = {
name = "Yuriy Taraday";
email = "yorik.sar@gmail.com";
matrix = "@yorik.sar:matrix.org";
github = "YorikSar";
githubId = 428074;
};
yrashk = {
email = "yrashk@gmail.com";
github = "yrashk";

View file

@ -0,0 +1,40 @@
{ lib
, fetchFromGitHub
, stdenv
, swift
, swiftpm
, darwin
}:
stdenv.mkDerivation (final: {
pname = "dark-mode-notify";
version = "unstable-2022-07-18";
src = fetchFromGitHub {
owner = "bouk";
repo = "dark-mode-notify";
rev = "4d7fe211f81c5b67402fad4bed44995344a260d1";
hash = "sha256-LsAQ5v5jgJw7KsJnQ3Mh6+LNj1EMHICMoD5WzF3hRmU=";
};
nativeBuildInputs = [
swift
swiftpm
];
buildInputs = with darwin.apple_sdk.frameworks; [
Foundation
Cocoa
];
makeFlags = [ "prefix=$(out)" ];
meta = {
description = "Run a script whenever dark mode changes in macOS";
homepage = "https://github.com/bouk/dark-mode-notify";
# Doesn't build on x86_64 because of some CoreGraphics issue, even with SDK 11.0
platforms = [ "aarch64-darwin" ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ YorikSar ];
};
})

View file

@ -3596,6 +3596,8 @@ with pkgs;
dcap = callPackage ../tools/networking/dcap { };
dark-mode-notify = callPackage ../os-specific/darwin/dark-mode-notify { };
deltachat-cursed = callPackage ../applications/networking/instant-messengers/deltachat-cursed { };
delayarchitect = callPackage ../applications/audio/delayarchitect { };