|
|
@ -1,23 +1,13 @@ |
|
|
|
{ pkgs ? import <nixpkgs> {} }: |
|
|
|
with pkgs; |
|
|
|
{pkgs ? import <nixpkgs> { |
|
|
|
inherit system; |
|
|
|
}, system ? builtins.currentSystem, noDev ? false}: |
|
|
|
|
|
|
|
let |
|
|
|
composerEnv = import ./composer-env.nix { |
|
|
|
inherit (pkgs) stdenv lib writeTextFile fetchurl php unzip phpPackages; |
|
|
|
}; |
|
|
|
phpPack = import ./php-packages.nix { |
|
|
|
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn; |
|
|
|
}; |
|
|
|
in |
|
|
|
stdenv.mkDerivation { |
|
|
|
name = "searchanddisplace-core-source"; |
|
|
|
src = builtins.fetchGit { |
|
|
|
url = "https://git.law/newroco/searchanddisplace-ingest.git"; |
|
|
|
ref = "master"; |
|
|
|
}; |
|
|
|
|
|
|
|
phases = [ "installPhase" ]; |
|
|
|
installPhase = '' |
|
|
|
cp -r $src $out |
|
|
|
composer install |
|
|
|
''; |
|
|
|
import ./php-packages.nix { |
|
|
|
inherit composerEnv noDev; |
|
|
|
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn; |
|
|
|
} |