diff options
author | Irene Knapp <ireneista@irenes.space> | 2025-10-05 06:33:57 -0700 |
---|---|---|
committer | Irene Knapp <ireneista@irenes.space> | 2025-10-05 06:33:57 -0700 |
commit | 95ef9dbac33a46432b4ae4b5028d2538e9c4bfa9 (patch) | |
tree | 074ac305dc2123344155ada3a9d705cddaff3284 /flake.nix | |
parent | 4332153ea60ebfc283c9c57aa856b015930395f2 (diff) |
initial template stuff
Force-Push: yes Change-Id: I9609c8cbf988c3b8998f92e1d725d29be97c04b7
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 35 |
1 files changed, 35 insertions, 0 deletions
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 + ]; + }; + }); + }; +} + |