Skip to content

Commit

Permalink
chore: reduce Nix flake build deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiksi committed Aug 18, 2024
1 parent 3926686 commit 1e6f92e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,22 @@
cargoSha256 = "sha256-aUKzSbyniuk2+UZmrUZjMv+yhcjn+eilnZtCMxzJLZo=";
# nativeBuildInputs: used only in build phase
nativeBuildInputs = [
pkgs.chromaprint
pkgs.cmake
pkgs.ffmpeg-full
pkgs.llvmPackages.clang
pkgs.pkg-config
] ++ pkgs.lib.optionals pkgs.stdenv.isLinux [
pkgs.fftw
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Accelerate
pkgs.darwin.apple_sdk.frameworks.AVFoundation
];
# buildInputs: used only at runtime (i.e., linked against)
# https://nixos.org/manual/nixpkgs/stable/#ssec-stdenv-dependencies-overview
buildInputs = [
pkgs.chromaprint
pkgs.ffmpeg-full
] ++ pkgs.lib.optionals pkgs.stdenv.isLinux [
pkgs.fftw
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Accelerate
pkgs.darwin.apple_sdk.frameworks.AVFoundation
];
# Required to allow build to "see" libclang (used by bindgen I think)
# Required to allow build to "see" libclang (used by bindgen I think).
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
meta = {
description = "A CLI tool that finds a needle (opening/intro and ending/credits) in a haystack (TV or anime episode).";
Expand Down

0 comments on commit 1e6f92e

Please sign in to comment.