summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-02-07 13:37:10 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-02-07 13:37:10 +0100
commit582eeb48091e7a4e2e8f93c8131e74d1bb3d0c5d (patch)
tree30ca7fe7ef0ae85fa497e61b32bcb5937bd6ffc7 /flake.nix
parent95a039c8d1f926365c8bf3c20b09ec6250e60d8a (diff)
fix compilation errors/warnings
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..bf0f856
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,29 @@
+{
+ description = "NES Emulator";
+
+ inputs = {
+ nixpkgs = {
+ url = "github:nixos/nixpkgs/nixpkgs-unstable";
+ };
+
+ flake-utils = {
+ url = "github:numtide/flake-utils";
+ };
+ };
+
+ outputs = { self, nixpkgs, flake-utils, ... }@inputs:
+ flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = import nixpkgs { inherit system; };
+ shell = pkgs.mkShell {
+ packages = with pkgs; [ cmake gcc binutils gdb gnumake valgrind clang-tools ];
+ hardeningDisable = [ "fortify" ];
+ };
+ in
+ {
+ devShells = {
+ default = shell;
+ };
+ });
+}
+