|
|
@ -1,13 +1,26 @@ |
|
|
|
{pkgs ? import <nixpkgs> { |
|
|
|
inherit system; |
|
|
|
}, system ? builtins.currentSystem, noDev ? false}: |
|
|
|
}, system ? builtins.currentSystem, noDev ? true}: |
|
|
|
|
|
|
|
let |
|
|
|
composerEnv = import ./composer-env.nix { |
|
|
|
inherit (pkgs) stdenv lib writeTextFile fetchurl php unzip phpPackages; |
|
|
|
}; |
|
|
|
in |
|
|
|
import ./php-packages.nix { |
|
|
|
inherit composerEnv noDev; |
|
|
|
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn; |
|
|
|
stdenv.mkDerivation { |
|
|
|
name = "searchanddisplace-ingest-source"; |
|
|
|
src = builtins.fetchGit { |
|
|
|
url = "https://git.law/newroco/searchanddisplace-ingest.git"; |
|
|
|
ref = "master"; |
|
|
|
}; |
|
|
|
|
|
|
|
phases = [ "installPhase" ]; |
|
|
|
installPhase = '' |
|
|
|
cp -r $src $out |
|
|
|
cp $out/.env.example $out/.env |
|
|
|
cd $out |
|
|
|
php artisan key:generate |
|
|
|
php artisan queue:deploy-supervisor |
|
|
|
supervisorctl start all |
|
|
|
''; |
|
|
|
} |