From ce71ebf896494296a34f2564b1f4859d740fe236 Mon Sep 17 00:00:00 2001 From: mat ess Date: Sat, 11 Mar 2023 12:53:23 -0500 Subject: [PATCH] Add cinny and hazeover --- darwin/homebrew.nix | 2 +- home/programs.nix | 2 +- pkgs/cinny.nix | 22 ++++++++++++++++++++++ pkgs/default.nix | 1 + 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 pkgs/cinny.nix diff --git a/darwin/homebrew.nix b/darwin/homebrew.nix index 31a1958..ccb1f89 100644 --- a/darwin/homebrew.nix +++ b/darwin/homebrew.nix @@ -55,8 +55,8 @@ in "bartender" "bbedit" # "discord" - # "element" "firefox" + "hazeover" "jitsi-meet" "knockknock" # "lagrange" diff --git a/home/programs.nix b/home/programs.nix index 7df42e1..4458558 100644 --- a/home/programs.nix +++ b/home/programs.nix @@ -44,8 +44,8 @@ home.packages = builtins.attrValues ({ inherit (pkgs) # GUI apps + cinny discord-ptb - element-desktop lagrange lapce obsidian diff --git a/pkgs/cinny.nix b/pkgs/cinny.nix new file mode 100644 index 0000000..f249999 --- /dev/null +++ b/pkgs/cinny.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, undmg, unzip, version ? "2.2.4", ... }: + +stdenv.mkDerivation { + inherit version; + pname = "cinny"; + nativeBuildInputs = [ undmg unzip ]; + src = fetchurl { + url = "https://github.com/cinnyapp/cinny-desktop/releases/download/v${version}/Cinny_desktop-x86_64.dmg"; + sha256 = "sha256-m8sYA7YjvhqGFuU1L1y7BtndHGd6MpuH+hKzPSukxD0="; + }; + + sourceRoot = "."; + + installPhase = '' + runHook preInstall + + mkdir -p $out/Applications + cp -r Cinny.app $out/Applications/Cinny.app + + runHook postInstall + ''; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index d54ffe8..8fbc4e7 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -14,6 +14,7 @@ _: prev: { (./. + "/${name}.nix") ({ "${name}-src" = inputs."${name}-src"; } // extras)) { + cinny = { }; dark-mode-notify = { sdkVersion = "14.2"; };