summary refs log tree commit diff
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2025-10-05 06:33:57 -0700
committerIrene Knapp <ireneista@irenes.space>2025-10-05 06:33:57 -0700
commit95ef9dbac33a46432b4ae4b5028d2538e9c4bfa9 (patch)
tree074ac305dc2123344155ada3a9d705cddaff3284
parent4332153ea60ebfc283c9c57aa856b015930395f2 (diff)
initial template stuff
Force-Push: yes
Change-Id: I9609c8cbf988c3b8998f92e1d725d29be97c04b7
-rw-r--r--.envrc1
-rw-r--r--.gitignore4
-rw-r--r--flake.lock27
-rw-r--r--flake.nix35
4 files changed, 67 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..794c189
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/result
+/result-*
+/.direnv
+*.swp
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..a843dfd
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,27 @@
+{
+  "nodes": {
+    "nixpkgs": {
+      "locked": {
+        "lastModified": 1759580034,
+        "narHash": "sha256-YWo57PL7mGZU7D4WeKFMiW4ex/O6ZolUS6UNBHTZfkI=",
+        "owner": "NixOS",
+        "repo": "nixpkgs",
+        "rev": "3bcc93c5f7a4b30335d31f21e2f1281cba68c318",
+        "type": "github"
+      },
+      "original": {
+        "owner": "NixOS",
+        "ref": "nixos-25.05",
+        "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..537dd15
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,35 @@
+{
+  inputs = {
+    nixpkgs = {
+      type = "github";
+      owner = "NixOS";
+      repo = "nixpkgs";
+      ref = "nixos-25.05";
+    };
+  };
+
+  outputs = { self, nixpkgs }:
+  let supportedSystems = [ "aarch64-linux" "x86_64-linux" ];
+      forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
+      nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
+  in {
+    packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in {
+      default = pkgs.stdenv.mkDerivation {
+        src = ./.;
+      };
+    });
+
+    devShells = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in {
+      default = pkgs.mkShell {
+        nativeBuildInputs = with pkgs; [
+          binutils
+          fasm
+          fasmg
+          gcc
+          nasm
+        ];
+      };
+    });
+  };
+}
+