- Modify bootstrap script to reuse composerEnv from package
- Prefix package names with composer-
This commit is contained in:
parent
1dc4359009
commit
a457596b5f
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 ''
|
||||
|
|
Loading…
Reference in a new issue