File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ stdenv.mkDerivation (finalAttrs: {
102102 "dev"
103103 "doc"
104104 "man"
105+ "debug"
105106 ] ;
106107
107108 /**
@@ -153,9 +154,12 @@ stdenv.mkDerivation (finalAttrs: {
153154 installPhase =
154155 let
155156 devPaths = lib . mapAttrsToList ( _k : lib . getDev ) finalAttrs . finalPackage . libs ;
157+ debugPaths = lib . map ( lib . getOutput "debug" ) (
158+ lib . attrValues finalAttrs . finalPackage . libs ++ [ nix-cli ]
159+ ) ;
156160 in
157161 ''
158- mkdir -p $out $dev/nix-support
162+ mkdir -p $out $dev/nix-support $debug/lib/debug
159163
160164 # Custom files
161165 echo $libs >> $dev/nix-support/propagated-build-inputs
@@ -168,6 +172,12 @@ stdenv.mkDerivation (finalAttrs: {
168172 lndir $lib $dev
169173 done
170174
175+ for d in ${ lib . escapeShellArgs debugPaths } ; do
176+ if [[ -d $d/lib/debug ]]; then
177+ lndir $d/lib/debug $debug/lib/debug
178+ fi
179+ done
180+
171181 # Forwarded outputs
172182 ln -sT ${ nix-manual } $doc
173183 ln -sT ${ nix-manual . man } $man
You can’t perform that action at this time.
0 commit comments