nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

beam/mixRelease: default stripDebug to false due frequent runtime errors (#232107)

This flag appears to cause issues in 3 out 4 users of mixRelease in
Nixpkgs, plus Mobilizon, which isn't merged yet. It might be safer to
set it to fals for now, as the runtime error messages produced by it are
quite cryptic.

authored by

Kerstin and committed by
GitHub
872987d0 c8f6370f

+12 -8
+2
pkgs/development/beam-modules/elixir-ls/default.nix
··· 16 16 mixRelease { 17 17 inherit pname version src elixir; 18 18 19 + stripDebug = true; 20 + 19 21 mixFodDeps = fetchMixDeps { 20 22 pname = "mix-deps-${pname}"; 21 23 inherit src version elixir;
+10 -1
pkgs/development/beam-modules/mix-release.nix
··· 9 9 , enableDebugInfo ? false 10 10 , mixEnv ? "prod" 11 11 , compileFlags ? [ ] 12 + 12 13 # mix fixed output derivation dependencies 13 14 , mixFodDeps ? null 15 + 14 16 # mix dependencies generated by mix2nix 15 17 # this assumes each dependency is built by buildMix or buildRebar3 16 18 # each dependency needs to have a setup hook to add the lib path to $ERL_LIBS 17 19 # this is how mix will find dependencies 18 20 , mixNixDeps ? { } 21 + 19 22 , elixir ? inputs.elixir 20 23 , hex ? inputs.hex.override { inherit elixir; } 21 - , stripDebug ? true 24 + 25 + # This reduces closure size, but can lead to some hard to understand runtime 26 + # errors, so use with caution. See e.g. 27 + # https://github.com/whitfin/cachex/issues/205 28 + # https://framagit.org/framasoft/mobilizon/-/issues/1169 29 + , stripDebug ? false 30 + 22 31 , ... 23 32 }@attrs: 24 33 let
-3
pkgs/servers/akkoma/default.nix
··· 31 31 mix phx.digest --no-deps-check 32 32 ''; 33 33 34 - # cf. https://github.com/whitfin/cachex/issues/205 35 - stripDebug = false; 36 - 37 34 mixNixDeps = import ./mix.nix { 38 35 inherit beamPackages lib; 39 36 overrides = (final: prev: {
-1
pkgs/servers/pleroma/default.nix
··· 17 17 rev = "v${version}"; 18 18 sha256 = "sha256-3iG2s7jVEnhq1kLLgtaHnFmLYBO2Xr5M5jjZfSNA9z4="; 19 19 }; 20 - stripDebug = false; 21 20 22 21 mixNixDeps = import ./mix.nix { 23 22 inherit beamPackages lib;
-3
pkgs/servers/web-apps/plausible/default.nix
··· 49 49 50 50 nativeBuildInputs = [ nodejs ]; 51 51 52 - # https://github.com/whitfin/cachex/issues/205 53 - stripDebug = false; 54 - 55 52 passthru = { 56 53 tests = { inherit (nixosTests) plausible; }; 57 54 updateScript = ./update.sh;