This commit is contained in:
Aaron Bieber 2022-10-03 13:40:26 -06:00
parent 14825957f0
commit 8de5b80f34
No known key found for this signature in database

View File

@ -1,33 +1,35 @@
{ self, config, pkgs, lib, isUnstable, ... }:
{
nixpkgs.overlays = if isUnstable then [
nixpkgs.overlays = if isUnstable then
[
(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=";
};
(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 = [ ];
patches = [ ];
nativeBuildInputs = with pkgs; [ cmake llvmPackages_14.llvm.dev ];
nativeBuildInputs = with pkgs; [ cmake llvmPackages_14.llvm.dev ];
buildInputs = with pkgs;
[ libxml2 zlib ] ++ (with llvmPackages_14; [ libclang lld llvm ]);
buildInputs = with pkgs;
[ libxml2 zlib ] ++ (with llvmPackages_14; [ libclang lld llvm ]);
checkPhase = ''
runHook preCheck
runHook postCheck
'';
checkPhase = ''
runHook preCheck
runHook postCheck
'';
});
})
] else
});
})
]
else
[ ];
}