Repo for the search and displace ingest module that takes odf, docx and pdf and transforms it into .md to be used with search and displace operations
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.

30 lines
783 B

2 years ago
2 years ago
  1. {pkgs ? import <nixpkgs> {
  2. inherit system;
  3. }, stdenv, system ? builtins.currentSystem, noDev ? true}:
  4. let
  5. composerEnv = import ./composer-env.nix {
  6. inherit (pkgs) stdenv lib writeTextFile fetchurl php unzip phpPackages;
  7. };
  8. phpPack = import ./php-packages.nix {
  9. inherit composerEnv noDev;
  10. inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn;
  11. };
  12. in
  13. stdenv.mkDerivation {
  14. name = "searchanddisplace-ingest-source";
  15. src = builtins.fetchGit {
  16. url = "https://git.law/newroco/searchanddisplace-ingest.git";
  17. ref = "master";
  18. };
  19. phases = [ "installPhase" ];
  20. installPhase = ''
  21. cp -r $src $out
  22. cp $out/.env.example $out/.env
  23. cd $out
  24. php artisan key:generate
  25. php artisan queue:deploy-supervisor
  26. supervisorctl start all
  27. '';
  28. }