xin/overlays/default.nix

73 lines
1.9 KiB
Nix
Raw Normal View History

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=";
};
});
};
in {
2022-10-05 07:51:18 -06:00
nixpkgs.overlays = if isUnstable then [
2022-10-05 14:08:12 -06:00
openssh
2022-10-17 11:01:51 -06:00
(self: super: {
matrix-synapse = super.matrix-synapse.overrideAttrs (old: rec {
version = "1.69.0";
src = super.python3.pkgs.fetchPypi {
pname = "matrix_synapse";
version = "1.69.0";
hash = "sha256-PfSfqaz3jdRJ1F++eqFnOxymoSEJpBBbyRU36+EPXcU=";
};
cargoDeps = super.rustPlatform.fetchCargoTarball {
inherit src;
name = "matrix-synapse-1.69.0";
sha256 = "sha256-RJq4mdPtnAR45rAycGDSSuvZwkJPOiqFBp+8mnBTKvU=";
};
});
})
2022-10-05 13:28:05 -06:00
2022-10-05 07:51:18 -06:00
(self: super: {
zig = super.zig.overrideAttrs (old: {
version = "0.10.0-dev.35e0ff7";
src = super.fetchFromGitHub {
owner = "ziglang";
repo = "zig";
rev = "10e11b60e56941cb664648dcebfd4db3d2efed30";
hash = "sha256-oD5yfvaaVtgW/VE+5yHCiJgC+QMwiLe2i+PGX3g/PT0=";
};
patches = [ ];
nativeBuildInputs = with pkgs; [ cmake llvmPackages_14.llvm.dev ];
buildInputs = with pkgs;
[ libxml2 zlib ] ++ (with llvmPackages_14; [ libclang lld llvm ]);
checkPhase = ''
runHook preCheck
runHook postCheck
'';
});
})
] else
2022-10-05 14:08:12 -06:00
[ openssh ];
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 ];
# });
# };
# };
# })