!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

164 Members
Coordination and discussion about the matrix subsystem in NixOS - https://wiki.nixos.org/wiki/Matrix80 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
30 Sep 2022
@sandro:supersandro.deSandro 🐧
In reply to @winterqt:nixos.dev
what hook, what do you mean? were you modifying the package in some way or something?
yes, I am precompressing web assets with brotli and zstd
12:19:27
@sandro:supersandro.deSandro 🐧
In reply to @winterqt:nixos.dev
what hook, what do you mean? were you modifying the package in some way or something?
* yes a custom hook, I am precompressing web assets with brotli and zstd
12:19:33
@winterqt:nixos.devWinter (she/her)

ah

can i see it (the old version at least)/get steps to reproduce your issue? want to debug why that's happening :)

12:20:39
@sandro:supersandro.deSandro 🐧

Add that to nativeBuildInputs of packages and then svgo should complain when NODE_OPTIONS is set.

  compress-website = callPackage
    ({ }: makeSetupHook
      {
        name = "compress-website";
        deps = [ nodePackages.svgo ];
      } ./compress-website.sh)
    { };
fixupOutputHooks+=('compressWebsite "$prefix"')

compressWebsite() {
  time svgo "$1"
}
12:32:12
@winterqt:nixos.devWinter (she/her)
In reply to @sandro:supersandro.de

Add that to nativeBuildInputs of packages and then svgo should complain when NODE_OPTIONS is set.

  compress-website = callPackage
    ({ }: makeSetupHook
      {
        name = "compress-website";
        deps = [ nodePackages.svgo ];
      } ./compress-website.sh)
    { };
fixupOutputHooks+=('compressWebsite "$prefix"')

compressWebsite() {
  time svgo "$1"
}
i'll take a look, thanks.
12:33:04
@winterqt:nixos.devWinter (she/her)Dendrite 0.10.0 is out.12:33:09

Show newer messages


Back to Room ListRoom Version: 4