Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sparus committed Aug 8, 2024
1 parent 585bfa5 commit 7357be3
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 58 deletions.
4 changes: 2 additions & 2 deletions extra/fuzzer/persist/flex-vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include <immer/flex_vector.hpp>

#include <fmt/ranges.h>
#include <immer/extra/persist/rbts/input.hpp>
#include <immer/extra/persist/rbts/output.hpp>
#include <immer/extra/persist/detail/rbts/input.hpp>
#include <immer/extra/persist/detail/rbts/output.hpp>

#include <array>

Expand Down
117 changes: 61 additions & 56 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,62 +90,67 @@
});
};

devShells.default = (withLLVM pkgs.mkShell) {
NIX_HARDENING_ENABLE = "";
inputsFrom = [
(import ./shell.nix {
inherit system nixpkgs;
})
];

packages = with pkgs;
[
# for the llvm-symbolizer binary, that allows to show stacks in ASAN and LeakSanitizer.
llvmPackages_latest.bintools-unwrapped
cmake-format
alejandra
just
fzf
starship
]
++ persist-inputs;

shellHook =
self.checks.${system}.pre-commit-check.shellHook
+ "\n"
+ ''
alias j=just
eval "$(starship init bash)"
'';
};

devShells.docs = let
docsPkgs = import docs-nixpkgs {inherit system;};
docs = docsPkgs.callPackage ./nix/docs.nix {};
in
pkgs.mkShell {
packages = [
pkgs.just
pkgs.fzf
pkgs.starship
pkgs.cmake
pkgs.ninja

docsPkgs.doxygen
(docsPkgs.python.withPackages (ps: [
ps.sphinx
docs.breathe
docs.recommonmark
]))
];

shellHook =
self.checks.${system}.pre-commit-check.shellHook
+ "\n"
+ ''
alias j=just
eval "$(starship init bash)"
'';
devShells =
{
default = (withLLVM pkgs.mkShell) {
NIX_HARDENING_ENABLE = "";
inputsFrom = [
(import ./shell.nix {
inherit system nixpkgs;
})
];

packages = with pkgs;
[
# for the llvm-symbolizer binary, that allows to show stacks in ASAN and LeakSanitizer.
llvmPackages_latest.bintools-unwrapped
cmake-format
alejandra
just
fzf
starship
]
++ persist-inputs;

shellHook =
self.checks.${system}.pre-commit-check.shellHook
+ "\n"
+ ''
alias j=just
eval "$(starship init bash)"
'';
};
}
// pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
# doxygen doesn't work on macOS currently
docs = let
docsPkgs = import docs-nixpkgs {inherit system;};
docs = docsPkgs.callPackage ./nix/docs.nix {};
in
pkgs.mkShell {
packages = [
pkgs.just
pkgs.fzf
pkgs.starship
pkgs.cmake
pkgs.ninja

docsPkgs.doxygen
(docsPkgs.python.withPackages (ps: [
ps.sphinx
docs.breathe
docs.recommonmark
]))
];

shellHook =
self.checks.${system}.pre-commit-check.shellHook
+ "\n"
+ ''
alias j=just
eval "$(starship init bash)"
'';
};
};

packages = {
Expand Down

0 comments on commit 7357be3

Please sign in to comment.