aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-01-28 11:36:09 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-01-28 11:44:25 +0530
commit7e4f12183ba1a2ef7272fe71d0f7d65e386747f6 (patch)
treecb9fa636438202fc3d03cbfc46dcf3280a913ca9
parent44abd4342064ce88e376328c8bbf58c89cc0cbe2 (diff)
add nix development environment
-rw-r--r--flake.lock27
-rw-r--r--flake.nix21
2 files changed, 48 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..b4c31d1
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1706191920,
+ "narHash": "sha256-eLihrZAPZX0R6RyM5fYAWeKVNuQPYjAkCUBr+JNvtdE=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "ae5c332cbb5827f6b1f02572496b141021de335f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..22d9607
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,21 @@
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ };
+
+ outputs = { self, nixpkgs, ... }:
+ let
+ pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
+ in {
+ devShells.x86_64-linux.default = pkgs.mkShell {
+ buildInputs = with pkgs; [
+ cmakeMinimal
+ SDL2
+ ];
+ shellHook = ''
+ tmux
+ exit
+ '';
+ };
+ };
+}