From af53f150f6b3c53094dc33264cf169b47e30b723 Mon Sep 17 00:00:00 2001 From: Vinicius Deolindo Date: Sat, 16 May 2026 18:33:41 -0300 Subject: [PATCH] reflex-app: init at 2.0 --- pkgs/by-name/re/reflex-app/package.nix | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/re/reflex-app/package.nix diff --git a/pkgs/by-name/re/reflex-app/package.nix b/pkgs/by-name/re/reflex-app/package.nix new file mode 100644 index 000000000000..2a166e14e9cb --- /dev/null +++ b/pkgs/by-name/re/reflex-app/package.nix @@ -0,0 +1,41 @@ +{ + lib, + stdenvNoCC, + fetchurl, + unzip, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "reflex-app"; + version = "2.0"; + + src = fetchurl { + url = "https://stuntsoftware.com/download/reflex_${finalAttrs.version}.zip"; + hash = "sha256-2CfNMs9zDFyFgrIAuh37bB3wPjDDrGsyyFY65n0CtIk="; + }; + + strictDeps = true; + __structuredAttrs = true; + + nativeBuildInputs = [ unzip ]; + + sourceRoot = "."; + + installPhase = '' + runHook preInstall + + mkdir -p "$out/Applications" + cp -R Reflex.app "$out/Applications" + + runHook postInstall + ''; + + meta = { + description = "Media key forwarder for Music and Spotify"; + homepage = "https://stuntsoftware.com/reflex/"; + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ iniw ]; + platforms = lib.platforms.darwin; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +})