1

Update C++ flakes

This commit is contained in:
2023-11-13 16:17:37 +01:00
parent 14f9bce7a2
commit 747f039730
2 changed files with 26 additions and 21 deletions

View File

@ -1,5 +1,5 @@
{ {
description = "C/C++ Environment"; description = "C/C++ Environment with Libraries";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
@ -50,11 +50,9 @@
bintools = bintools_multi; bintools = bintools_multi;
}; };
in { in {
# devShell = pkgs.devshell.mkShell ... # NOTE: We cannot use devshell, as it doesn't propagate library paths (yet?)
devShell = pkgs.devshell.mkShell { devShells.default = pkgs.mkShell {
name = "C/C++ Environment"; buildInputs = with pkgs; [
packages = with pkgs; [
# Compilers # Compilers
bintools bintools
gcc13 gcc13
@ -73,14 +71,16 @@
gdb gdb
# cling # To try out my bullshit implementations # cling # To try out my bullshit implementations
# doxygen # Generate docs + graphs # doxygen # Generate docs + graphs
];
commands = [ # C++ Libraries
# { # boost181
# name = "ide"; # raylib
# help = "Run clion for project"; # sfml
# command = "clion &>/dev/null ./ &";
# } # C Libraries
# blas
# lapack
# libsvm
]; ];
}; };
}); });

21
env/flake_c++.nix vendored
View File

@ -1,5 +1,5 @@
{ {
description = "C/C++ Environment with Libraries"; description = "C/C++ Environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
@ -50,9 +50,11 @@
bintools = bintools_multi; bintools = bintools_multi;
}; };
in { in {
# NOTE: We cannot use devshell, as it doesn't propagate library paths (yet?) # devShell = pkgs.devshell.mkShell ...
devShells.default = pkgs.mkShell { devShell = pkgs.devshell.mkShell {
buildInputs = with pkgs; [ name = "C/C++ Environment";
packages = with pkgs; [
# Compilers # Compilers
bintools bintools
gcc13 gcc13
@ -71,11 +73,14 @@
gdb gdb
# cling # To try out my bullshit implementations # cling # To try out my bullshit implementations
# doxygen # Generate docs + graphs # doxygen # Generate docs + graphs
];
# Libraries commands = [
# boost181 # {
# raylib # name = "ide";
# sfml # help = "Run clion for project";
# command = "clion &>/dev/null ./ &";
# }
]; ];
}; };
}); });