Main doesn't leak anymore
This commit is contained in:
parent
3463af8295
commit
0eb8922770
3 changed files with 20 additions and 8 deletions
17
flake.nix
17
flake.nix
|
|
@ -4,12 +4,21 @@
|
|||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
inputs.generic_c.url = "github:Maix0/generic_c";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, generic_c }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||
{
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
generic_c,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShell = pkgs.mkShell {
|
||||
packages = with pkgs; [clang valgrind gnumake readline.out readline.dev generic_c.packages.${system}.default];
|
||||
shellHook = ''
|
||||
alias 'valgrind'='valgrind --supressions=${./valgrind_readline_leaks_ignore.txt}';
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue