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, ... }: { 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 = { home = {
packages = with pkgs; [ packages = with pkgs; [
gawk gawk
discord discord
bitwarden_cli
]; ];
file = { file = {
".config/aerospace/aerospace.toml".source = ".config/aerospace/aerospace.toml".source =

View file

@ -111,7 +111,6 @@ in
bc bc
cmatrix cmatrix
svelte-language-server svelte-language-server
bitwarden-cli
]; ];
file = utils.mk_symlinks { inherit config dotfiles; }; file = utils.mk_symlinks { inherit config dotfiles; };

View file

@ -50,6 +50,7 @@ in
blueman blueman
playerctl playerctl
mako mako
bitwarden-cli
]; ];
file = utils.mk_symlinks { inherit config dotfiles; }; file = utils.mk_symlinks { inherit config dotfiles; };