diff --git a/bootstrap.sh b/bootstrap.sh index 319b671..57c4bf8 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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 diff --git a/src/Composer2Nix/composer-env.nix b/src/Composer2Nix/composer-env.nix index f366110..49f4562 100644 --- a/src/Composer2Nix/composer-env.nix +++ b/src/Composer2Nix/composer-env.nix @@ -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 ''