1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 23:24:35 +00:00
nixpkgs/pkgs/development/tools/misc/gdb/pstack.nix

12 lines
270 B
Nix

{ stdenv, gdb }:
stdenv.mkDerivation {
name = "pstack-20120823";
buildCommand = ''
mkdir -p $out/bin
cat > $out/bin/pstack <<EOF
${gdb}/bin/gdb -ex "set pagination 0" -ex "thread apply all bt" --batch -p \$1
EOF
chmod a+x $out/bin/pstack
'';
}