about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-14 17:16:46 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-14 17:16:46 +0200
commitc8b497050304f121ca2c7cb2d6532dde3c07094a (patch)
tree4e6601545c78d938444ea774629c35dc68cb5bd3
parentAdded physics speedup option (diff)
downloadOSLS-c8b497050304f121ca2c7cb2d6532dde3c07094a.tar.gz
OSLS-c8b497050304f121ca2c7cb2d6532dde3c07094a.tar.bz2
OSLS-c8b497050304f121ca2c7cb2d6532dde3c07094a.zip
Add nix tooling
-rw-r--r--flake.lock40
-rw-r--r--flake.nix16
-rw-r--r--shell.nix9
3 files changed, 65 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..0b3c367
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,40 @@
+{
+  "nodes": {
+    "flake-utils": {
+      "locked": {
+        "lastModified": 1659877975,
+        "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
+        "type": "github"
+      },
+      "original": {
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "type": "github"
+      }
+    },
+    "nixpkgs": {
+      "locked": {
+        "lastModified": 1662732537,
+        "narHash": "sha256-iqxa+38SRU+SwNsKDyP8rZt79yPFGSgTe+K4Ujbb/uw=",
+        "path": "/nix/store/fvlw9w0m49k94ag7bb674yyc92rr5fif-source",
+        "rev": "74a1793c659d09d7cf738005308b1f86c90cb59b",
+        "type": "path"
+      },
+      "original": {
+        "id": "nixpkgs",
+        "type": "indirect"
+      }
+    },
+    "root": {
+      "inputs": {
+        "flake-utils": "flake-utils",
+        "nixpkgs": "nixpkgs"
+      }
+    }
+  },
+  "root": "root",
+  "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..74fd650
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,16 @@
+{
+  description = "baitinq.github.io flake";
+
+  inputs.flake-utils.url = "github:numtide/flake-utils";
+
+  outputs = { self, nixpkgs, flake-utils }:
+
+    flake-utils.lib.eachDefaultSystem
+      (system:
+        let pkgs = nixpkgs.legacyPackages.${system}; in
+        {
+          devShells.default = import ./shell.nix { inherit pkgs; };
+        }
+      );
+
+}
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..3bae8d4
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,9 @@
+{ pkgs ? import <nixpkgs> { } }:
+pkgs.mkShell {
+  nativeBuildInputs = with pkgs; [
+    python3
+    python3Packages.numpy
+    python3Packages.pygame
+    python3Packages.matplotlib
+  ];
+}