mirror of
https://github.com/eza-community/eza.git
synced 2025-08-04 17:08:42 +00:00
build(flake): darwin devShell resuse eza deps
Co-authored-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com> Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
1a8bac8b37
commit
4570180cec
1 changed files with 26 additions and 18 deletions
44
flake.nix
44
flake.nix
|
@ -73,7 +73,13 @@
|
|||
};
|
||||
|
||||
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
|
||||
buildInputs = with pkgs; [zlib] ++ lib.optionals stdenv.isDarwin [libiconv darwin.apple_sdk.frameworks.Security];
|
||||
|
||||
darwinBuildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [
|
||||
pkgs.libiconv
|
||||
pkgs.darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
buildInputs = [pkgs.zlib] ++ darwinBuildInputs;
|
||||
in rec {
|
||||
# For `nix fmt`
|
||||
formatter = treefmtEval.config.build.wrapper;
|
||||
|
@ -215,27 +221,29 @@
|
|||
# For `nix develop`:
|
||||
devShells.default = pkgs.mkShell {
|
||||
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
||||
nativeBuildInputs = with pkgs; [
|
||||
rustup
|
||||
toolchain
|
||||
just
|
||||
pandoc
|
||||
convco
|
||||
zip
|
||||
nativeBuildInputs = with pkgs;
|
||||
[
|
||||
rustup
|
||||
toolchain
|
||||
just
|
||||
pandoc
|
||||
convco
|
||||
zip
|
||||
|
||||
# For releases
|
||||
b3sum
|
||||
cargo-bump
|
||||
# For releases
|
||||
b3sum
|
||||
cargo-bump
|
||||
|
||||
# For generating demo
|
||||
vhs
|
||||
# For generating demo
|
||||
vhs
|
||||
|
||||
powertest.packages.${pkgs.system}.default
|
||||
powertest.packages.${pkgs.system}.default
|
||||
|
||||
cargo-hack
|
||||
cargo-udeps
|
||||
cargo-outdated
|
||||
];
|
||||
cargo-hack
|
||||
cargo-udeps
|
||||
cargo-outdated
|
||||
]
|
||||
++ darwinBuildInputs;
|
||||
};
|
||||
|
||||
# For `nix flake check`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue