Skip to content

Commit

Permalink
build(nix): drop macOS native dependencies (#88)
Browse files Browse the repository at this point in the history
Followup for #79, we no longer need `libiconv`. This should make macOS nix builds faster.
  • Loading branch information
nekowinston committed Nov 5, 2023
1 parent 0e32692 commit 547ed85
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ serde_json = "1.0.105"
semver = "1.0.19"
toml_edit = "0.20.1"
version-compare = "0.1.1"

[profile.release]
lto = true
opt-level = "z"
strip = true
28 changes: 12 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
mdbook-catppuccin = pkgs.rustPlatform.buildRustPackage {
pname = "mdbook-catppuccin";
inherit version;
buildInputs = with pkgs; ([] ++ lib.optionals stdenv.isDarwin [libiconv]);
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
cargoLock.lockFile = ./Cargo.lock;
};
Expand All @@ -28,21 +27,18 @@

devShells = forAllSystems (pkgs: rec {
default = pkgs.mkShell {
buildInputs = with pkgs; (
[
rustc
cargo
gcc
rustfmt
clippy
rust-analyzer
# mdbook
mdbook-admonish
node2nix
nodejs
]
++ lib.optionals stdenv.isDarwin [libiconv]
);
buildInputs = with pkgs; [
rustc
cargo
gcc
rustfmt
clippy
rust-analyzer
# mdbook
mdbook-admonish
node2nix
nodejs
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
demo = pkgs.mkShell {
Expand Down

0 comments on commit 547ed85

Please sign in to comment.