I'm trying to make a Nix derivation for Foliate, and this is my first real derivation, so I don't really know what I'm doing yet.
Here's what I have so far. It builds and installs, but fails with this error:
Running custom install script '/build/source/build-aux/meson/postinstall.py' Failed to run install script '/build/source/build-aux/meson/postinstall.py' FAILED: meson-install /nix/store/2b4cdbcs1xbqjna5dr4qrr1p9p9bgm98-meson-0.51.2/bin/meson install --no-rebuild ninja: build stopped: subcommand failed. builder for '/nix/store/32vn9xlxlk9zb7vmpm90bz5i5qq59fjc-foliate-1.5.3.drv' failed with exit code 1 error: build of '/nix/store/32vn9xlxlk9zb7vmpm90bz5i5qq59fjc-foliate-1.5.3.drv' failed
I tried adding
python3 as a build dependency, but that didn't seem to work. What am I missing?
Also, is there any other way I can improve or simplify this derivation?