overlays: bitwarden_rs: cleanup
This commit is contained in:
parent
215080e70e
commit
76ceb26707
|
@ -121,6 +121,6 @@
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "btrfs" ];
|
boot.supportedFilesystems = [ "btrfs" ];
|
||||||
|
|
||||||
nixpkgs.overlays = [ (import ./overlays/bitwarden_rs.nix) ];
|
nixpkgs.overlays = import ./overlays;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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:
|
final: prev:
|
||||||
{
|
{
|
||||||
bitwarden_rs = prev.bitwarden_rs.overrideAttrs (drv: rec {
|
bitwarden_rs = prev.bitwarden_rs.overrideAttrs (drv: rec {
|
||||||
version = "1.18.0";
|
version = "1.18.0";
|
||||||
pname = "bitwarden_rs";
|
pname = "bitwarden_rs";
|
||||||
name = "bitwarden_rs-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
owner = "dani-garcia";
|
owner = "dani-garcia";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "1.18.0";
|
rev = version;
|
||||||
sha256 = "sha256-iK0Yf5Hu76b4FXPTQsKIsyH69CQuLA9E/SoTaxC1U90=";
|
sha256 = "sha256-iK0Yf5Hu76b4FXPTQsKIsyH69CQuLA9E/SoTaxC1U90=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoDeps = drv.cargoDeps.overrideAttrs (prev.lib.const {
|
cargoDeps = drv.cargoDeps.overrideAttrs (prev.lib.const {
|
||||||
inherit src;
|
inherit src;
|
||||||
name = "${name}-vendor.tar.gz";
|
name = "${name}-vendor.tar.gz";
|
||||||
|
|
||||||
outputHash = "sha256-LKLjZ4tti/MtloVQJ1C593FAcp0DDskIl5famT8wGuI=";
|
outputHash = "sha256-LKLjZ4tti/MtloVQJ1C593FAcp0DDskIl5famT8wGuI=";
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
6
overlays/default.nix
Normal file
6
overlays/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
let
|
||||||
|
bitwarden_rs = import ./bitwarden_rs.nix;
|
||||||
|
in
|
||||||
|
[
|
||||||
|
bitwarden_rs
|
||||||
|
]
|
Loading…
Reference in a new issue