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.

34 lines
1.0 KiB

2 years ago
2 years ago
  1. with import <nixpkgs>{};
  2. { stdenv, fetchGit, sbcl, unzip, curl, git, openssl, php, phpPackages, nodejs}:
  3. let
  4. name = "search-and-displace";
  5. gitStore = builtins.fetchGit {
  6. url = "https://git.law/newroco/searchanddisplace.git";
  7. ref = "master";
  8. };
  9. inherit (phpPackages) composer;
  10. buildPackage = { name, src }:
  11. stdenv.mkDerivation {
  12. inherit name src;
  13. buildInputs = [ curl git openssl php composer nodejs ];
  14. buildCommand = ''
  15. #cd $src
  16. #composer update
  17. #composer install
  18. #npm install
  19. # cp .env.example .env
  20. mkdir -p $out
  21. cp -R $src/* $out
  22. mv * $out
  23. # Remove unwanted files - that is impossible with, nix, give up...
  24. #rm -f $out/*.nix
  25. #rm -R $out/pkgs
  26. # Remove stuff not needed on production - composer.lock, composer.json, etc, etc - that is impossible with, nix, give up...
  27. '';
  28. };
  29. in
  30. buildPackage {
  31. inherit name;
  32. #src = ./.;
  33. src = gitStore;
  34. }