dotfiles.nix/pkgs/dark-mode-notify.nix

20 lines
500 B
Nix
Raw Normal View History

2023-08-23 00:50:29 +00:00
{ stdenv, lib, xcodeenv, dark-mode-notify-src, sdkVersion, ... }:
let
xcode = xcodeenv.composeXcodeWrapper {
version = sdkVersion;
xcodeBaseDir = "/Applications/Xcode.app";
};
2023-08-23 00:50:29 +00:00
in stdenv.mkDerivation {
name = "dark-mode-notify";
src = dark-mode-notify-src;
buildPhase = ''
2022-08-31 04:48:48 +00:00
${xcode}/bin/xcrun swift build -c release --disable-sandbox
'';
installPhase = ''
mkdir -p $out/bin
2022-08-31 04:48:48 +00:00
cp .build/release/dark-mode-notify $out/bin
'';
meta.platforms = lib.platforms.darwin;
}