nixos-config/overlays/bitwarden_rs.nix

24 lines
675 B
Nix

# necessary for now because I need 1.18.0, having migrated from a previous
# deployment that used an updated Docker image
final: prev:
{
bitwarden_rs = prev.bitwarden_rs.overrideAttrs (drv: rec {
version = "1.18.0";
pname = "bitwarden_rs";
name = "${pname}-${version}";
src = prev.fetchFromGitHub {
owner = "dani-garcia";
repo = pname;
rev = version;
sha256 = "sha256-iK0Yf5Hu76b4FXPTQsKIsyH69CQuLA9E/SoTaxC1U90=";
};
cargoDeps = drv.cargoDeps.overrideAttrs (prev.lib.const {
inherit src;
name = "${name}-vendor.tar.gz";
outputHash = "sha256-LKLjZ4tti/MtloVQJ1C593FAcp0DDskIl5famT8wGuI=";
});
});
}