Initial repo for search and displace code (written for, rather than the tools used in the processing)
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.

37 lines
1.2 KiB

2 years ago
2 years ago
2 years ago
2 years ago
  1. { pkgs ? import <nixpkgs> {
  2. inherit system;
  3. }, system ? builtins.currentSystem
  4. }:
  5. let
  6. name = "search-and-displace";
  7. gitStore = builtins.fetchGit {
  8. url = "https://git.law/newroco/searchanddisplace-ingest.git";
  9. ref = "master";
  10. };
  11. # builtins.filterSource
  12. # (path: type: baseNameOf path != "sandd-php-packages.nix" || baseNameOf path != "testing.nix" || baseNameOf path != "composer-env.nix")
  13. # (builtins.fetchGit {
  14. # url = "https://git.law/newroco/searchanddisplace-ingest.git";
  15. # ref = "master";
  16. # });
  17. inherit (pkgs) stdenv;
  18. composerEnv = import ./composer-env.nix {
  19. inherit (pkgs) stdenv writeTextFile fetchurl php unzip phpPackages;
  20. };
  21. phpPackage = import ./sandd-php-packages.nix {
  22. inherit composerEnv;
  23. inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn;
  24. src = gitStore;
  25. noDev = true; # Disable development dependencies
  26. inherit name;
  27. };
  28. in
  29. phpPackage.override {
  30. removeComposerArtifacts = true; # Remove composer configuration files
  31. buildInputs = [ pkgs.git ]; # Add here any environment dependency
  32. # Add below all lines of post installation instructions e.g ''npm install'' ?
  33. postInstall = ''
  34. ll ./
  35. '';
  36. }