dumb-init: fix dynamic compilation (#210030)

authored by

superherointj and committed by
GitHub
c3b9f223 4e9e5aea

+5 -1
+5 -1
pkgs/applications/virtualization/dumb-init/default.nix
··· 11 11 sha256 = "sha256-aRh0xfmp+ToXIYjYaducTpZUHndZ5HlFZpFhzJ3yKgs="; 12 12 }; 13 13 14 - buildInputs = lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc.static ]; 14 + postPatch = lib.optionalString (!stdenv.hostPlatform.isStatic) '' 15 + substituteInPlace Makefile --replace "-static" "" 16 + ''; 17 + 18 + buildInputs = lib.optional (stdenv.hostPlatform.isGnu && stdenv.hostPlatform.isStatic) glibc.static; 15 19 16 20 installPhase = '' 17 21 runHook preInstall