nix: add libblake to buildInputs; split off nativeBuildInputs
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I0541e803fd9635867501202c18567f786a6a6964
This commit is contained in:
parent
303b211d74
commit
7a74735213
1 changed files with 14 additions and 8 deletions
22
flake.nix
22
flake.nix
|
|
@ -5,14 +5,13 @@
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
in {
|
in {
|
||||||
devShells = forAllSystems (system: {
|
devShells = forAllSystems (system: let
|
||||||
default = nixpkgs.legacyPackages.${system}.mkShell {
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
buildInputs = with nixpkgs.legacyPackages.${system}; [
|
in {
|
||||||
cmake
|
default = pkgs.mkShell {
|
||||||
pkg-config
|
buildInputs = with pkgs; [
|
||||||
ninja
|
boost.dev
|
||||||
boost
|
libblake3.dev
|
||||||
bear
|
|
||||||
|
|
||||||
nixVersions.nixComponents_2_32.nix-store
|
nixVersions.nixComponents_2_32.nix-store
|
||||||
nixVersions.nixComponents_2_32.nix-expr
|
nixVersions.nixComponents_2_32.nix-expr
|
||||||
|
|
@ -23,6 +22,13 @@
|
||||||
nixVersions.nix_2_32
|
nixVersions.nix_2_32
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
ninja
|
||||||
|
bear
|
||||||
|
];
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
NIX_PLUGINABI = "0.2";
|
NIX_PLUGINABI = "0.2";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue