2022-08-25 12:21:35 -06:00
|
|
|
{ self, config, pkgs, lib, isUnstable, ... }:
|
|
|
|
|
2022-10-05 14:08:12 -06:00
|
|
|
let
|
|
|
|
openssh = self: super: {
|
|
|
|
openssh = super.openssh.overrideAttrs (old: {
|
|
|
|
version = "9.1p1";
|
|
|
|
|
|
|
|
src = super.fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-9.1p1.tar.gz";
|
|
|
|
hash = "sha256-GfhQCcfj4jeH8CNvuxV4OSq01L+fjsX+a8HNfov90og=";
|
|
|
|
};
|
2022-11-01 09:20:32 -06:00
|
|
|
|
|
|
|
doCheck = false;
|
2022-10-05 14:08:12 -06:00
|
|
|
});
|
|
|
|
};
|
2022-11-01 10:35:42 -06:00
|
|
|
openssl_3 = self: super: {
|
|
|
|
openssl_3 = super.openssl_3.overrideAttrs (old: rec {
|
|
|
|
pname = "openssl";
|
|
|
|
version = "3.0.7";
|
|
|
|
sha256 = "sha256-gwSdBComDmlvYkBqxcCL9wb9hDg/lFzyG9YentlcOW4=";
|
|
|
|
src = super.fetchurl {
|
|
|
|
url = "https://www.openssl.org/source/${pname}-${version}.tar.gz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
patches = [
|
|
|
|
./nix-ssl-cert-file.patch
|
|
|
|
./openssl-disable-kernel-detection.patch
|
|
|
|
./use-etc-ssl-certs.patch
|
|
|
|
];
|
|
|
|
});
|
|
|
|
};
|
2022-10-05 14:08:12 -06:00
|
|
|
in {
|
2022-11-01 11:04:15 -06:00
|
|
|
nixpkgs.overlays = if isUnstable then
|
|
|
|
[ ]
|
|
|
|
else [
|
2022-11-01 07:35:08 -06:00
|
|
|
openssh
|
2022-11-01 10:35:42 -06:00
|
|
|
openssl_3
|
2022-11-01 07:35:08 -06:00
|
|
|
|
|
|
|
(self: super: {
|
|
|
|
matrix-synapse = super.matrix-synapse.overrideAttrs (old: rec {
|
|
|
|
version = "1.70.1";
|
|
|
|
src = super.fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "synapse";
|
|
|
|
rev = "v1.70.1";
|
|
|
|
sha256 = "sha256-/clEY3sabaDEOAAowQ896vYOvzf5Teevoa7ZkzWw+fY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = super.rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "matrix-synapse-1.70.1";
|
|
|
|
sha256 = "sha256-9wxWxrn+uPcz60710DROhDqNC6FvTtnqzWiWRk8kl6A=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
];
|
2022-08-25 12:21:35 -06:00
|
|
|
}
|
2022-10-01 07:18:49 -06:00
|
|
|
|
|
|
|
# Example Python dep overlay
|
|
|
|
# (self: super: {
|
|
|
|
# python3 = super.python3.override {
|
|
|
|
# packageOverrides = python-self: python-super: {
|
|
|
|
# canonicaljson = python-super.canonicaljson.overrideAttrs (oldAttrs: {
|
|
|
|
# nativeBuildInputs = [ python-super.setuptools ];
|
|
|
|
# });
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# })
|
|
|
|
|