Compare commits
No commits in common. "3fd487bbd26b6af444c66160f97cad80d8f0160a" and "a48303e66de1a97d3a82914a92e45a0ab7a3f9a0" have entirely different histories.
3fd487bbd2
...
a48303e66d
|
@ -5,38 +5,13 @@ in
|
||||||
{
|
{
|
||||||
options.my.home.gdb = with lib; {
|
options.my.home.gdb = with lib; {
|
||||||
enable = my.mkDisableOption "gdb configuration";
|
enable = my.mkDisableOption "gdb configuration";
|
||||||
|
|
||||||
rr = {
|
|
||||||
enable = my.mkDisableOption "rr configuration";
|
|
||||||
|
|
||||||
package = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.rr;
|
|
||||||
defaultText = literalExample "pkgs.rr";
|
|
||||||
description = ''
|
|
||||||
Package providing rr
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkIf cfg.enable {
|
||||||
(lib.mkIf cfg.enable {
|
home.packages = with pkgs; [
|
||||||
home.packages = with pkgs; [
|
gdb
|
||||||
gdb
|
];
|
||||||
];
|
|
||||||
|
|
||||||
# FIXME: waiting for commit 64aaad6349d2b2c45063a5383f877ce9a3a0c354
|
xdg.configFile."gdb/gdbinit".source = ./gdbinit;
|
||||||
xdg.configFile."gdb/gdbinit".source = ./gdbinit;
|
};
|
||||||
|
|
||||||
# FIXME: remove once `gdb` is updated from version 10.2
|
|
||||||
home.file.".gdbinit".source = ./gdbinit;
|
|
||||||
})
|
|
||||||
|
|
||||||
(lib.mkIf cfg.rr.enable {
|
|
||||||
home.packages = [
|
|
||||||
cfg.rr.package
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,4 +19,4 @@ set print demangle on
|
||||||
set auto-load python-scripts
|
set auto-load python-scripts
|
||||||
|
|
||||||
# Allow autoloading project-local .gdbinit files
|
# Allow autoloading project-local .gdbinit files
|
||||||
set auto-load safe-path ~/git/
|
add-auto-load-safe-path ~/git/
|
||||||
|
|
Loading…
Reference in a new issue