Files
nix-files/hosts/common/programs/objdump.nix

11 lines
401 B
Nix

{ pkgs, ... }:
{
sane.programs.objdump = {
# binutils-unwrapped is like 80 MiB, just for this one binary;
# dynamic linking means copying the binary doesn't reduce the closure much at all compared to just symlinking it.
packageUnwrapped = pkgs.linkBinIntoOwnPackage pkgs.binutils-unwrapped "objdump";
sandbox.method = "bwrap";
sandbox.autodetectCliPaths = "existingFile";
};
}