overlays: bitwarden_rs: cleanup

This commit is contained in:
Antoine Martin 2021-01-31 14:18:23 +01:00
parent 215080e70e
commit 76ceb26707
3 changed files with 11 additions and 4 deletions

View file

@ -121,6 +121,6 @@
boot.supportedFilesystems = [ "btrfs" ];
nixpkgs.overlays = [ (import ./overlays/bitwarden_rs.nix) ];
nixpkgs.overlays = import ./overlays;
}

View file

@ -1,21 +1,22 @@
# 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 = "bitwarden_rs-${version}";
name = "${pname}-${version}";
src = prev.fetchFromGitHub {
owner = "dani-garcia";
repo = pname;
rev = "1.18.0";
rev = version;
sha256 = "sha256-iK0Yf5Hu76b4FXPTQsKIsyH69CQuLA9E/SoTaxC1U90=";
};
cargoDeps = drv.cargoDeps.overrideAttrs (prev.lib.const {
inherit src;
name = "${name}-vendor.tar.gz";
outputHash = "sha256-LKLjZ4tti/MtloVQJ1C593FAcp0DDskIl5famT8wGuI=";
});
});

6
overlays/default.nix Normal file
View file

@ -0,0 +1,6 @@
let
bitwarden_rs = import ./bitwarden_rs.nix;
in
[
bitwarden_rs
]