Closed pcboy closed 8 months ago
I think I just found the issue. :facepalm:
bundleEnv = pkgs.bundlerEnv {
name = "beef-env";
ruby = pkgs.ruby;
gemdir = ./.;
gemConfig =
pkgs.defaultGemConfig
// {
gdal = attrs: {
nativeBuildInputs = [pkgs.gdal pkgs.which];
};
};
};
I had to add a custom gemConfig with this set of nativeBuildInputs directly. And it seems to be compiling fine now.
I'm sure this is likely stupid, but I completely fail at installing gdal.
I have this simple flake:
In my gemset.nix:
Every time I try to load the shell, I get:
If I manually do:
It actually runs fine and generate a Makefile…
And if I do make, it compiles fine. I think it's because I have gcc already on my machine, but it's also supposed to be in the devShell.
I also tried to make a derivation instead, and added gcc in the nativeBuildInputs before adding
bundleEnv
in the buildInputs, but same issue.The logs at
nix log /nix/store/a33phgkxbzv4xrkww90g9sg4g8fc752j-ruby3.1.4-gdal-3.0.0.drv
show:What am I missing?
I do have gdal-config, I tried to remove bundleEnv from the list of packages in the shell, and tried to do
which gdal-config
in the shell, and it's there.