aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.envrc2
-rw-r--r--flake.nix19
2 files changed, 5 insertions, 16 deletions
diff --git a/.envrc b/.envrc
index f75f891..f5a4648 100644
--- a/.envrc
+++ b/.envrc
@@ -12,6 +12,8 @@
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
use flake
+watch_file ./nix/package.nix
+
pre_cache_load rust sqlite perf releng
root="$(git rev-parse --show-toplevel)"
diff --git a/flake.nix b/flake.nix
index b22b3db..a36c009 100644
--- a/flake.nix
+++ b/flake.nix
@@ -30,21 +30,7 @@
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages."${system}";
- buildInputs = with pkgs; [
- mpv-unwrapped.dev
- libffi
- openssl
- zlib
- curl.dev
- ];
-
- nativeBuildInputs = with pkgs; [
- llvmPackages_latest.clang-unwrapped.lib
- pkg-config
-
- # Needed for the tests in `libmpv2`
- SDL2
- ];
+ inherit (yt) nativeBuildInputs buildInputs;
yt = pkgs.callPackage ./nix/package.nix {inherit tree-sitter-yts;};
tree-sitter-yts = pkgs.callPackage ./tree-sitter-yts/package.nix {};
@@ -77,7 +63,8 @@
C_INCLUDE_PATH = "${pkgs.glibc.dev}/include";
};
- inherit buildInputs nativeBuildInputs;
+ inherit buildInputs;
+ inherit nativeBuildInputs;
shellHook = ''
# Try to source the completions from the build yt binary