xin/overlays/default.nix

66 lines
2.0 KiB
Nix
Raw Normal View History

2023-01-03 08:24:11 -07:00
{ self, config, pkgs, lib, isUnstable, ... }: {
2022-11-01 11:04:15 -06:00
nixpkgs.overlays = if isUnstable then
2022-12-19 06:10:04 -07:00
[
(self: super: {
aerc = super.aerc.overrideAttrs (old: {
patches = [
(pkgs.fetchurl {
url =
"https://lists.sr.ht/~rjarry/aerc-devel/%3C20221218160541.680374-1-moritz%40poldrack.dev%3E/raw";
sha256 = "sha256-qPRMOuPs5Pxiu2p08vGxsoO057Y1rVltPyBMbJXsH1s=";
})
];
});
})
]
2022-12-15 08:27:36 -07:00
else
[
(self: super: {
matrix-synapse = super.matrix-synapse.overrideAttrs (old: rec {
2022-12-20 12:16:09 -07:00
version = "1.74.0";
2022-12-15 08:27:36 -07:00
src = super.fetchFromGitHub {
owner = "matrix-org";
repo = "synapse";
rev = "v${version}";
2022-12-20 12:16:09 -07:00
sha256 = "sha256-UsYodjykcLOgClHegqH598kPoGAI1Z8bLzV5LLE6yLg=";
2022-12-15 08:27:36 -07:00
};
2022-11-01 07:35:08 -06:00
2022-12-15 08:27:36 -07:00
cargoDeps = super.rustPlatform.fetchCargoTarball {
inherit (self) src;
name = "matrix-synapse-${version}";
2022-12-20 12:16:09 -07:00
sha256 = "sha256-XOW9DRUhGIs8x5tQ9l2A85sNv736uMmfC72f8FX3g/I=";
2022-12-15 08:27:36 -07:00
};
});
})
2022-11-01 07:35:08 -06:00
2022-12-15 08:27:36 -07:00
];
2022-08-25 12:21:35 -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 ];
# });
# };
# };
# })
# Example of an overlay that changes the buildGoModule function
#tailscale = self: super: {
# tailscale = super.callPackage "${super.path}/pkgs/servers/tailscale" {
# buildGoModule = args:
# super.buildGo119Module (args // rec {
# version = "1.32.2";
# src = super.fetchFromGitHub {
# owner = "tailscale";
# repo = "tailscale";
# rev = "v${version}";
# sha256 = "sha256-CYNHD6TS9KTRftzSn9vAH4QlinqNgU/yZuUYxSvsl/M=";
# };
# vendorSha256 = "sha256-VW6FvbgLcokVGunTCHUXKuH5+O6T55hGIP2g5kFfBsE=";
# });
# };
#};