Hi,
I’ve read that in order to read Raws with Ristretto, we need to install libopenraw.
So I did and even installed libraw, added them to nix-ld, but no luck, I get Unsupported mime type.
What am I missing?
Hi,
I’ve read that in order to read Raws with Ristretto, we need to install libopenraw.
So I did and even installed libraw, added them to nix-ld, but no luck, I get Unsupported mime type.
What am I missing?
You’d need to actually include it in the package’s build environment. This might or might not work, depending on whether their build system auto-detects library presence or if you need to set some variables or something:
# configuration.nix
{ pkgs, ... }: {
environment.systemPackages = [
(pkgs.ristretto.overrideAttrs (old: {
buildInputs = old.buildInputs ++ [
pkgs.libraw
];
}))
];
}
It looks like this might need to go into some gdk variable, so I suspect it won’t work; Refer to upstream documentation for specific build instructions.
Generally, that’s how you add optional libraries to stuff on NixOS, rather than nix-ld - if you rely on that a lot, I’d recommend limiting it to specific packages by setting the NIX_LD variable by hand and not using the NixOS option, if only to slowly learn how nix actually works.
Thanks for your answer! I switched to nomacswhich works out of the box ![]()