From 582eeb48091e7a4e2e8f93c8131e74d1bb3d0c5d Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Fri, 7 Feb 2025 13:37:10 +0100 Subject: fix compilation errors/warnings --- flake.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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; + }; + }); +} + -- cgit v1.3.1