This commit is contained in:
xenia 2024-06-05 00:44:26 +02:00
parent 21ed23a8df
commit cc7bb2aaba

View File

@ -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;