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.

28 lines
1009 B

  1. { pkgs ? import <nixpkgs> {
  2. inherit system;
  3. }, system ? builtins.currentSystem
  4. }:
  5. let
  6. name = "search-and-diplace";
  7. inherit (pkgs) stdenv;
  8. composerEnv = import ./composer-env.nix {
  9. inherit (pkgs) stdenv writeTextFile fetchurl php unzip phpPackages;
  10. };
  11. phpPackage = import ./sandd-php-packages.nix {
  12. inherit composerEnv;
  13. inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn;
  14. noDev = true; # Disable development dependencies
  15. inherit name;
  16. };
  17. in
  18. with import (builtins.fetchurl https://github.com/searchanddisplace/searchanddisplace/raw/master/composer.json) {};
  19. phpPackage.override {
  20. #buildCommand = ''
  21. # curl -o composer.json https://github.com/searchanddisplace/searchanddisplace/raw/master/composer.json
  22. #'';
  23. removeComposerArtifacts = true; # Remove composer configuration files
  24. buildInputs = [ pkgs.git ]; # Add here any environment dependency
  25. # Add below all lines of post installation instructions e.g ''npm install'' ?
  26. postInstall = ''
  27. '';
  28. }