aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-28 17:58:16 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-28 17:58:16 +0100
commitf6279f68c419b3d24a442aa892b6eecccd7aa452 (patch)
tree856ae3475548f144dbfad0fa87a60ae47a971cd2 /flake.nix
parentbuild(nix/package.nix): Don't build `libmpv2`'s opengl SDL example (diff)
downloadyt-f6279f68c419b3d24a442aa892b6eecccd7aa452.zip
build(flake.nix): Re-use the `yt` package `{,native}BuildInputs`
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix19
1 files changed, 3 insertions, 16 deletions
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