Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(nix): drop macOS native dependencies #88

Merged
merged 1 commit into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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