Lucian Pricop
2 years ago
4 changed files with 57 additions and 19 deletions
@ -0,0 +1,38 @@ |
|||||
|
{ 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 ./ |
||||
|
''; |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue