-
Notifications
You must be signed in to change notification settings - Fork 13
/
flake.nix
39 lines (34 loc) · 1.19 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "nixpkgs/nixos-23.11";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
devtools = [
pkgs.clang-tools
pkgs.cmake-format
pkgs.nixpkgs-fmt
];
in
rec {
packages.xsimd = pkgs.xsimd.overrideAttrs rec {
version = "12.1.1";
src = pkgs.fetchFromGitHub {
owner = "xtensor-stack";
repo = "xsimd";
rev = "12.1.1";
sha256 = "sha256-ofUFieeRtpnzNv3Ad5oYwKWb2XcqQHoj601TIhydJyI=";
};
};
packages.libear = pkgs.callPackage ./nix/libear.nix { src = ./.; xsimd = packages.xsimd; };
packages.default = packages.libear;
packages.libear_clang = packages.libear.override { stdenv = pkgs.clangStdenv; };
devShells.libear = packages.libear.overrideAttrs (attrs: {
nativeBuildInputs = attrs.nativeBuildInputs ++ devtools;
});
devShells.default = devShells.libear;
}
);
}