From cc7bb2aaba926b3a29f2809b7baffde219594a67 Mon Sep 17 00:00:00 2001 From: xenia Date: Wed, 5 Jun 2024 00:44:26 +0200 Subject: [PATCH] Alloy --- home/graphical.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/home/graphical.nix b/home/graphical.nix index 275ebe24..9c2155c9 100644 --- a/home/graphical.nix +++ b/home/graphical.nix @@ -2,10 +2,25 @@ let alacritty = import ./alacritty/alacritty.nix pkgs; + alloy6-mac = pkgs.stdenv.mkDerivation rec { + name = "alloy6"; + version = "6.0.0"; + src = pkgs.fetchurl { + url = "https://github.com/AlloyTools/org.alloytools.alloy/releases/download/v${version}/alloy.dmg"; + sha256 = "sha256-tRMAQQuWq+aWvhS+mLUnfIpzLw1ydepiuD16uFFRvlI="; + }; + nativeBuildInputs = [ pkgs.undmg ]; + sourceRoot = "."; + installPhase = '' + mkdir -p $out/Applications + cp -r Alloy.app $out/Applications + ''; + }; + in rec { home.packages = with pkgs; [ fira-code ibm-plex - ]; + ] ++ (if pkgs.stdenv.isDarwin then [alloy6-mac] else [pkgs.alloy6]); programs.alacritty = alacritty;