Skip to content

Commit 63a805b

Browse files
committed
feat(iris): add webcam mirror application
Adds Iris, a macOS application that provides a webcam mirror window with hotkey toggle functionality.
1 parent 222e4d2 commit 63a805b

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

home/gui/darwin/misc.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
menubar-dock-bin # macOS dock in menubar
2424
MultiSoundChanger-bin # aggregate-output volume control in menubar
2525
LibreScore-bin # Music notation ripper
26+
iris # Webcam mirror
27+
#LosslessSwitcher-bin # Lossless audio toggle in menubar
2628
;
2729

2830
# claude-desktop = pkgs.brewCasks.claude.overrideAttrs (oldAttrs: {

pkgs/darwin/iris/package.nix

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
stdenvNoCC,
3+
fetchzip,
4+
lib,
5+
makeWrapper,
6+
...
7+
}:
8+
stdenvNoCC.mkDerivation (finalAttrs: {
9+
pname = "iris";
10+
version = "0.2.0-hotkey";
11+
12+
src = fetchzip {
13+
extension = "zip";
14+
url = "https://github.com/DivitMittal/Iris/releases/download/v${finalAttrs.version}/Iris-v${finalAttrs.version}.zip";
15+
hash = "sha256-ZHXw2+Fpm6+cXo01oNrXa7iQW4HMmic3KkVrD50a1hA=";
16+
};
17+
18+
nativeBuildInputs = [makeWrapper];
19+
20+
installPhase = ''
21+
runHook preInstall
22+
23+
mkdir -p "$out/Applications/Iris.app"
24+
cp -R ./* "$out/Applications/Iris.app"
25+
26+
mkdir -p "$out/bin"
27+
makeWrapper "$out/Applications/Iris.app/Contents/MacOS/Iris" "$out/bin/iris"
28+
29+
runHook postInstall
30+
'';
31+
32+
meta = {
33+
description = "Webcam mirror window for macOS with hotkey toggle";
34+
homepage = "https://github.com/DivitMittal/Iris";
35+
license = lib.licenses.mit;
36+
platforms = lib.platforms.darwin;
37+
maintainers = with lib.maintainers; [DivitMittal];
38+
sourceProvenance = with lib.sourceTypes; [binaryNativeCode];
39+
};
40+
})

0 commit comments

Comments
 (0)