LnL7 / nix-darwin

nix modules for darwin
MIT License
3.18k stars 457 forks source link

Build failure: handbrake #1180

Closed RekiDunois closed 3 hours ago

RekiDunois commented 4 hours ago

running command nix-shell -p handbrake

find: pkg-config...(pass) /nix/store/g694qc6kxcl6p74n18aq81ry1wvzxfm3-pkg-config-wrapper-0.29.2/bin/pkg-config
find: cargo...(fail) not found
find: cargo-cbuild...(fail) not found
find: xcodebuild...(fail) not found
probe: checking for -Oz...(pass) end
compute: available architectures...(pass) arm64 x86_64 [arm64]
probe: number of CPU cores...(pass) 10
probe: repo info...(fail) code 1
probe: version.txt...(pass)
compute: project data...(pass) HandBrake (release)
version probe: autoconf 2.71.0...(pass) 2.72
version probe: automake 1.13.0...(pass) 1.16.5
version probe: pkg-config 0.27.0...(pass) 0.29.2
compute: host tuple...(pass) arm64-apple-darwin24.1.0
probe: strerror_r...(pass)
probe: checking for -Wno-format-truncation...(fail) code 1
...
xcrun metal -O2 -std=macos-metal2.4 -c -frecord-sources ../libhb/platform/macosx/shaders/bwdif_vt.metal -o libhb/platfor>
/nix/store/iafzjk7zbkqaszqfp6n006vvxjrpn4f6-bash-5.2p32/bin/bash: line 1: xcrun: command not found
make: *** [../libhb/module.rules:21:libhb/platform/macosx/shaders/bwdif_vt.o] 错误 127
make: 离开目录“/private/tmp/nix-build-handbrake-1.8.2.drv-0/source/build”

but when i run xcrun

bash-5.2$ xcrun
Usage: xcrun [options] <tool name> ... arguments ...

Find and execute the named command line tool from the active developer
directory.

The active developer directory can be set using `xcode-select`, or via the
DEVELOPER_DIR environment variable. See the xcrun and xcode-select manual
pages for more information.

Options:
  -h, --help                  show this help message and exit
  --version                   show the xcrun version
  -v, --verbose               show verbose logging output
  --sdk <sdk name>            find the tool for the given SDK name
  --toolchain <name>          find the tool for the given toolchain
  -l, --log                   show commands to be executed (with --run)
  -f, --find                  only find and print the tool path
  -r, --run                   find and execute the tool (the default behavior)
  -n, --no-cache              do not use the lookup cache
  -k, --kill-cache            invalidate all existing cache entries
  --show-sdk-path             show selected SDK install path
  --show-sdk-version          show selected SDK version
  --show-sdk-build-version    show selected SDK build version
  --show-sdk-platform-path    show selected SDK platform path
  --show-sdk-platform-version show selected SDK platform version

xcode is already installed.

Enzime commented 3 hours ago

Packages for Nix come from Nixpkgs not nix-darwin, I suggest filing an issue in Nixpkgs

It looks like Handbrake is marked as broken currently: https://github.com/NixOS/nixpkgs/blob/cd1ee59b419b8c962fbc29150737f890420d9e64/pkgs/by-name/ha/handbrake/package.nix#L365