Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
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
760 B

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