svanderburg / composer2nix

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

Accept php arg in default.nix #20

Closed jbboehr closed 2 years ago

jbboehr commented 3 years ago

I'm trying to use composer2nix with a PHP 8.0-only project, and, well, it (specifically composer) doesn't work unless it's run under PHP 8.0, which is not currently the default php attribute in nixos-unstable.

I currently import composer2nix in a dev shell like so: https://github.com/jbboehr/php-psr/blob/d9003822a540fc35627d63baa48445ed81742fd1/default.nix#L20

A composer update is required as some older versions of packages did not list PHP 8.0 as supported.

jbboehr commented 3 years ago

~I just realized your default.nix is probably generated by composer2nix itself. I'll see if I can fix it.~

jbboehr commented 3 years ago

Incidentally, would be nice to set up GitHub actions if only as documentation on how to run the tests.