Archived
Watch
1
0
Fork
You've already forked nixos
0

openblas temp fix

This commit is contained in:
asnev 2026-06-27 07:54:02 +07:00
commit c76075c9e4
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4

View file

@ -5,9 +5,6 @@
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-26.05";
};
#nixpkgs-unstable = {
# url = "github:nixos/nixpkgs/nixos-unstable";
#};
home-manager = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
@ -17,12 +14,10 @@
outputs = inputs @ {
self,
nixpkgs,
#nixpkgs-unstable,
home-manager,
...
}: let
system = "x86_64-linux";
#pkgs-unstable = import nixpkgs-unstable {inherit system;};
in {
nixosConfigurations = {
phostron = nixpkgs.lib.nixosSystem {
@ -44,5 +39,21 @@
];
};
};
devShells.${system}.default = let
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
openblas =
if prev.stdenv.hostPlatform.system == "i686-linux"
then prev.openblas.overrideAttrs (_: {doCheck = false;})
else prev.openblas;
})
];
};
in pkgs.mkShell {
buildInputs = with pkgs; [ openblas ];
};
};
}