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
722 B

  1. { pkgs ? import <nixpkgs> {
  2. inherit system;
  3. }, system ? builtins.currentSystem
  4. }:
  5. let
  6. name = "search-and-displace";
  7. inherit (pkgs) stdenv git curl php phpPackages;
  8. inherit (phpPackages) composer;
  9. gitStore = builtins.fetchGit {
  10. url = "https://github.com/searchanddisplace/searchanddisplace.git";
  11. ref = "master";
  12. };
  13. buildPackage = { name, src }:
  14. stdenv.mkDerivation {
  15. inherit name src;
  16. buildInputs = [ ];
  17. buildCommand = ''
  18. composer install
  19. npm install
  20. cp .env.example .env
  21. # Remove stuff not needed on production - composer.loc, .json, etc, etc
  22. '';
  23. };
  24. in
  25. buildPackage {
  26. inherit name;
  27. src = gitStore;
  28. }