nixos-config/overlays/bitwarden_rs.nix

24 lines
675 B
Nix
Raw Normal View History

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