Unverified Commit 35390c3d authored by Piotr Kwiecinski's avatar Piotr Kwiecinski Committed by GitHub
Browse files

davis: switch to buildComposerProject2 (#380098)

parent 3aaea786
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
  nixosTests,
}:

php.buildComposerProject (finalAttrs: {
php.buildComposerProject2 (finalAttrs: {
  pname = "davis";
  version = "5.0.2";

@@ -16,9 +16,10 @@ php.buildComposerProject (finalAttrs: {
    hash = "sha256-Zl+6nrgspyg6P9gqYwah81Z6Mtni6nUlCp4gTjJWn9M=";
  };

  vendorHash = "sha256-ZV5GNNtex+yKaMP5KaQkx5EaJRAJSwJjIZOCcXlnVW4=";
  vendorHash = "sha256-pCWM1kgk30Au9i8TflrmZXw/PJmo3tdW565BXwncsZU=";

  postInstall = ''
    chmod -R u+w $out/share
    # Only include the files needed for runtime in the derivation
    mv $out/share/php/${finalAttrs.pname}/{migrations,public,src,config,bin,templates,tests,translations,vendor,symfony.lock,composer.json,composer.lock} $out
    # Save the upstream .env file for reference, but rename it so it is not loaded