openblas temp fix
This commit is contained in:
parent
c4484c0bbd
commit
c76075c9e4
1 changed files with 20 additions and 13 deletions
21
flake.nix
21
flake.nix
|
|
@ -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 ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue