mirror of
https://github.com/JaxTheWolf/nix-shells.git
synced 2026-03-31 21:20:23 +02:00
32 lines
586 B
Nix
32 lines
586 B
Nix
{
|
|
description = "Central C++ Dev Shell";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
}: let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
gcc
|
|
cmake
|
|
ninja
|
|
gdb
|
|
pkg-config
|
|
valgrind
|
|
bind
|
|
perf
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
];
|
|
shellHook = ''
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
|
|
'';
|
|
};
|
|
};
|
|
}
|