Run composer2nix
This commit is contained in:
parent
d415966d94
commit
988e5ee5e6
5 changed files with 364 additions and 0 deletions
14
nix/composer2nix/default.nix
Normal file
14
nix/composer2nix/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, noDev ? false, php ? pkgs.php, phpPackages ? pkgs.phpPackages}:
|
||||
|
||||
let
|
||||
composerEnv = import ./composer-env.nix {
|
||||
inherit (pkgs) stdenv lib writeTextFile fetchurl unzip;
|
||||
inherit php phpPackages;
|
||||
};
|
||||
in
|
||||
import ./php-packages.nix {
|
||||
inherit composerEnv noDev;
|
||||
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue