Ffmpeg - /nix/store paths look weird

Hi,

When I run ffmpeg, some of the flags look like they aren’t being updated to actual /nix/store paths:

 --prefix=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-7.1
 --bindir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-7.1-bin/bin
 --libdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-7.1-lib/lib
 --incdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-7.1-dev/include
 --mandir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-7.1-man/share/man
 --docdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-7.1-doc/share/doc/ffmpeg

Actual /nix/store paths are:

nix/store/4gbhcpwvqamf2hyw0yaa0m7p62wbhqv5-ffmpeg-full-7.1-lib/
nix/store/fnkc0w739yj500z25p2amqy229cx8lyf-ffmpeg-full-7.1.drv
nix/store/b32mxmmmgaa87bribh68s2az222i950r-ffmpeg-full-7.1-lib/
nix/store/1a3qdk1hqbzwz04dwv3m30gr86h71gni-ffmpeg-full-7.1-data/
nix/store/9y5kx3rav2yy61xmc2i4y4zcg1ifwagc-ffmpeg-full-7.1-bin/
nix/store/6f61bvcmn33rxdyqqq77sw66sx8zddjp-ffmpeg-full-7.1/
nix/store/hgs216wgw6qiyk2h10iws3bbcgi7knxx-ffmpeg-full-7.1-man/
nix/store/j9y254sj2dgi2j17hd9ycfg45s5c2yp8-ffmpeg-full-7.1.drv
nix/store/z08130yk617va6gzf137nw4cmq89q3vc-ffmpeg-full-7.1-man/
nix/store/1pi6s9ds3l1j1wqfvl4arr9a9yxfx3jr-ffmpeg-full-7.1-dev/
nix/store/y7ga0z2xp4q31m6555ykrm6hcdbrqyx3-ffmpeg-full-7.1-doc/
nix/store/l2g4jvssa748m5jsyf7965pq9ha8p68x-ffmpeg-full-7.1-data/
nix/store/nvz58dppqi2mdfxsyjz66zw0q7gajsna-ffmpeg-full-7.1-doc/
nix/store/35z97z2r98lq9fc54849sgxgic4pz4zl-ffmpeg-full-7.1-bin/

Is this right? If not, how would I fix it, is there a configuration option I need to send to ffmpeg (or sdl2’s ‘static-link’ or something) to run at compile time? Or maybe reset these after install with a postInstall hook or something? I think I could run something like ffmpeg --bindir=nix/store/9y5kx3rav2yy61xmc2i4y4zcg1ifwagc-ffmpeg-full-7.1-bin/bin but surely this should be set at build time?

My main issue is that a package is not finding an installed audio device.

TIA

This is the right behavior and I think it’s similar to remove-references-to.

Please elaborate. Can you share more details and your config or a minimal reproducible example?

1 Like

OK, thank you very much–at least rules that out as the cause. I have other questions open about the package I’m trying to get working (gossip-v0.14.0-unstable, not in nixpkgs), so maybe I’ll continue on those threads instead. This question was just about those ffmpeg paths in particular.