mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix: update mongodb
it's broken in upstream nixpkgs
This commit is contained in:
parent
e72478968c
commit
e47c3fefb3
3 changed files with 16 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ in rec {
|
|||
nfs = import ./nfs.nix;
|
||||
nginx = import ./nginx.nix;
|
||||
samba = import ./samba.nix;
|
||||
unifi = import ./unifi.nix;
|
||||
deploy-rs = inputs.deploy-rs.overlays.default or inputs.deploy-rs.overlay;
|
||||
arc = inputs.arcexprs.overlays.default;
|
||||
}
|
||||
|
|
|
|||
14
overlays/unifi.nix
Normal file
14
overlays/unifi.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
final: prev: let
|
||||
inherit (final) lib;
|
||||
in {
|
||||
mongodb-5_0 = let
|
||||
mongodb-5_0_26 = prev.mongodb-5_0.overrideAttrs (old: rec {
|
||||
version = "5.0.26";
|
||||
name = "${old.pname}-${version}";
|
||||
src = final.fetchurl {
|
||||
url = "https://fastdl.mongodb.org/src/mongodb-src-r${version}.tar.gz";
|
||||
sha256 = "sha256-GGvE52zCu2tg4p35XJ5I78nBxRUp4KwBqlmtiv50N7w=";
|
||||
};
|
||||
});
|
||||
in lib.warnIf (lib.versionAtLeast prev.mongodb-5_0.version "5.0.26") "mongodb 5.0 updated in upstream nixpkgs, overlay no longer needed" mongodb-5_0_26;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue