Browse Source

add libiconv dependency

rewrite-it-in-rust
Brian Hicks 1 year ago
parent
commit
17e8dac9c8
  1. 3
      default.nix
  2. 3
      shell.nix

3
default.nix

@ -3,7 +3,8 @@
let
naersk = pkgs.callPackage sources.naersk { };
gitignore = import sources.gitignore { };
darwinInputs = if pkgs.stdenv.isDarwin then [ pkgs.xcbuild ] else [ ];
in naersk.buildPackage {
src = gitignore.gitignoreSource ./.;
buildInputs = if pkgs.stdenv.isDarwin then [ pkgs.xcbuild ] else [ ];
buildInputs = [ pkgs.libiconv ] ++ darwinInputs;
}

3
shell.nix

@ -10,6 +10,9 @@ stdenv.mkDerivation {
niv.niv
git
# tree-sitter C deps
pkgs.libiconv
# rust tools
cargo
cargo-watch

Loading…
Cancel
Save