Unverified Commit 8ff9f7c8 authored by teutat3s's avatar teutat3s
Browse files

invoiceplane: fix build

applyPatches needs to be used to patch the src for vendorHash to pick up
the changes to composer.json and composer.lock
parent 36671882
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
  fetchFromGitHub,
  nixosTests,
  fetchYarnDeps,
  nodejs,
  applyPatches,
  php,
  yarnConfigHook,
  yarnBuildHook,
@@ -24,23 +24,26 @@ php.buildComposerProject2 (finalAttrs: {
  pname = "invoiceplane";
  inherit version;

  src = applyPatches {
    src = fetchFromGitHub {
      owner = "InvoicePlane";
      repo = "InvoicePlane";
      tag = "v${version}";
      hash = "sha256-XNjdFWP5AEulbPZcMDXYSdDhaLWlgu3nnCSFnjUjGpk=";
    };

    patches = [
    # yarn.lock missing some resolved attributes and fails
    ./fix-yarn-lock.patch

      # Fix composer.json validation
      # See https://github.com/InvoicePlane/InvoicePlane/pull/1306
      ./fix_composer_validation.patch
    ];
  };

  patches = [
    # yarn.lock missing some resolved attributes and fails
    ./fix-yarn-lock.patch
  ];

  vendorHash = "sha256-qnWLcEabQpu0Yp4Q2NWQm4XFV4YW679cvXo6p/dDECI=";
  vendorHash = "sha256-UCYAnECuIbIYg1T4I8I9maXVKXJc1zkyauBuIy5frTY=";

  nativeBuildInputs = [
    yarnConfigHook