nixpkgs/pkgs/servers/web-apps/discourse
Maximilian Bosch 77d4f4feee
discourse.assets: work around cannot execute: required file not found
`yarn run patch-package` as `postinstall`-hook doesn't work because it
has a shebang using `/usr/bin/env` which isn't available in the sandbox.
Removing the postinstall hook and manually running this after
`patchShebangs` appears to solve the issue.

Relevant error log of the build error
(`NIXPKGS_ALLOW_INSECURE=1 nix-build -A discourse.assets`)

    error /build/source/app/assets/javascripts/node_modules/discourse: Command failed.
    Exit code: 127
    Command: patch-package
    Arguments:
    Directory: /build/source/app/assets/javascripts/node_modules/discourse
    Output:
    /bin/sh: line 1: /build/source/app/assets/javascripts/node_modules/.bin/patch-package: cannot execute: required file not found
    info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2023-06-24 12:27:44 +02:00
..
mail_receiver
plugins discourseAllPlugins: update all 2023-04-28 12:14:58 +02:00
rubyEnv discourse: 3.1.0.beta2 -> 3.1.0.beta4 2023-04-28 12:14:58 +02:00
action_mailer_ca_cert.patch
admin_create.patch
asserts_patch-package_from_path.patch discourse: 3.1.0.beta2 -> 3.1.0.beta4 2023-04-28 12:14:58 +02:00
assets_rake_command.patch
auto_generated_path.patch
default.nix discourse.assets: work around cannot execute: required file not found 2023-06-24 12:27:44 +02:00
how_to_update.md
nixos_defaults.patch
notification_email.patch
plugin_gem_api_version.patch
unicorn_logging_and_timeout.patch
update.py
use_mv_instead_of_rename.patch