diff options
-rw-r--r-- | flake.lock | 17 | ||||
-rw-r--r-- | flake.nix | 9 |
2 files changed, 25 insertions, 1 deletions
diff --git a/flake.lock b/flake.lock index f8914f1..3c67d34 100644 --- a/flake.lock +++ b/flake.lock @@ -483,6 +483,22 @@ "type": "github" } }, + "nixpkgs-synapse": { + "locked": { + "lastModified": 1709696403, + "narHash": "sha256-H8n1eSU8Y0V8WUMXuFh6Y/us0iYJt6uY0vA9xj+U+/0=", + "owner": "NickCao", + "repo": "nixpkgs", + "rev": "f226fb4d801f4973eeef9720cbc83097e1078a86", + "type": "github" + }, + "original": { + "owner": "NickCao", + "ref": "matrix-synapse", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1673606088, @@ -536,6 +552,7 @@ "nixos-mailserver": "nixos-mailserver", "nixpkgs-2111": "nixpkgs-2111", "nixpkgs-exotic": "nixpkgs-exotic", + "nixpkgs-synapse": "nixpkgs-synapse", "sefidel-web": "sefidel-web", "sops-nix": "sops-nix", "unstable": "unstable", diff --git a/flake.nix b/flake.nix index e9f1a01..e106218 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,7 @@ nixpkgs-2111.url = "github:nixos/nixpkgs/nixos-21.11"; nixpkgs-exotic.url = "git+https://git.exotic.sh/nixpkgs-exotic"; + nixpkgs-synapse.url = "github:NickCao/nixpkgs/matrix-synapse"; colmena.url = "github:zhaofengli/colmena"; colmena.inputs.nixpkgs.follows = "unstable"; @@ -34,7 +35,13 @@ system = "x86_64-linux"; - pkgs = import unstable { inherit system; overlays = [ inputs.nixpkgs-exotic.overlays.default ]; }; + pkgs = import unstable { inherit system; overlays = [ + inputs.nixpkgs-exotic.overlays.default + (final: prev: { + # TODO: https://github.com/NixOS/nixpkgs/pull/293650 + inherit (inputs.nixpkgs-synapse.legacyPackages.${system}) matrix-synapse; + }) + ]; }; lib = unstable.lib.extend (self: super: { my = import ./lib { inherit pkgs inputs; lib = self; }; }); |