- Modify bootstrap script to reuse composerEnv from package

- Prefix package names with composer-
This commit is contained in:
Sander van der Burg 2017-09-24 22:46:14 +02:00
parent 1dc4359009
commit a457596b5f
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,5 @@
#!/bin/sh -e
php ~/composer.phar install
php bin/composer2nix
php bin/composer2nix --composer-env src/Composer2Nix/composer-env.nix --no-copy-composer-env
rm -Rf vendor

View file

@ -150,6 +150,7 @@ rec {
'') (builtins.attrNames dependencies);
in
stdenv.lib.makeOverridable stdenv.mkDerivation (builtins.removeAttrs args [ "packages" "devPackages" ] // {
name = "composer-${args.name}";
buildInputs = [ php composer ] ++ args.buildInputs or [];
buildCommand = ''
${if executable then ''