svanderburg / composer2nix

Generate Nix expressions to build PHP composer packages
MIT License
88 stars 25 forks source link

Help building Semantic MediaWiki #14

Open lorenzleutgeb opened 3 years ago

lorenzleutgeb commented 3 years ago

This is about Semantic MediaWiki. I'd like to get it running on NixOS, but am struggling. Please help me out.

I did

composer2nix -p mediawiki/semantic-media-wiki --package-version 3.2.1 --no-dev

That seemed to work, but apart from the expected *.nix files, it also produced extensions/SemanticMediaWiki which seems to be a clone of SemanticMediaWiki/SemanticMediaWiki. However, it does not contain a .git directory, so I could not easily check which version I got (of course I assume that it corresponds to the tag for version 3.2.1).

The problem is, that default.nix somehow needs this extensions/SemanticMediaWiki directory to build. If I remove it, the build fails (Composer detects that extensions/SemanticMediaWiki is missing, and attempts to run git to fetch it, which does not work).

My plan was to check in the *.nix files generated by composer2nix into Git, and use the result of default.nix as input to NixOS' services.mediawiki.extensions but I am totally confused about the folder popping out of composer2nix. It should only manifest once I evaluate default.nix, right?

Any ideas?