Separate bitwarden-cli between darwin/linux, darwin needs to build using

old llvm toolchain, doesnt compile on latest. This is a temporary
workaround
This commit is contained in:
Martin Larsson 2025-05-13 11:45:32 +02:00
parent 06dd1db569
commit 74b8d11033
3 changed files with 10 additions and 1 deletions

View file

@ -1,9 +1,18 @@
{ pkgs, config, ... }:
let
bitwarden_cli = pkgs.bitwarden-cli.overrideAttrs (oldAttrs: {
stdenv = pkgs.llvmPackages_18.stdenv;
nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ pkgs.llvmPackages_18.stdenv.cc ];
CXX = "${pkgs.llvmPackages_18.clang}/bin/clang++";
CC = "${pkgs.llvmPackages_18.clang}/bin/clang";
});
in
{
home = {
packages = with pkgs; [
gawk
discord
bitwarden_cli
];
file = {
".config/aerospace/aerospace.toml".source =