You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
{ pkgs ? import <nixpkgs> {
|
|
inherit system;
|
|
}, system ? builtins.currentSystem
|
|
}:
|
|
let
|
|
name = "search-and-displace";
|
|
gitStore = builtins.fetchGit {
|
|
url = "https://git.law/newroco/searchanddisplace-ingest.git";
|
|
ref = "master";
|
|
};
|
|
# builtins.filterSource
|
|
# (path: type: baseNameOf path != "sandd-php-packages.nix" || baseNameOf path != "testing.nix" || baseNameOf path != "composer-env.nix")
|
|
# (builtins.fetchGit {
|
|
# url = "https://git.law/newroco/searchanddisplace-ingest.git";
|
|
# ref = "master";
|
|
# });
|
|
|
|
|
|
inherit (pkgs) stdenv;
|
|
composerEnv = import ./composer-env.nix {
|
|
inherit (pkgs) stdenv writeTextFile fetchurl php unzip phpPackages;
|
|
};
|
|
phpPackage = import ./sandd-php-packages.nix {
|
|
inherit composerEnv;
|
|
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn;
|
|
src = gitStore;
|
|
noDev = true; # Disable development dependencies
|
|
inherit name;
|
|
};
|
|
in
|
|
phpPackage.override {
|
|
removeComposerArtifacts = true; # Remove composer configuration files
|
|
buildInputs = [ pkgs.git ]; # Add here any environment dependency
|
|
# Add below all lines of post installation instructions e.g ''npm install'' ?
|
|
postInstall = ''
|
|
ll ./
|
|
'';
|
|
}
|