about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--flake.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index bc3308a..149edc0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -12,13 +12,12 @@
       };
 
       naersk' = pkgs.callPackage naersk {};
-      
-    in rec {
-      packages."x86_64-linux".r2wars-rs = naersk'.buildPackage {
+
+      r2wars-rs = naersk'.buildPackage {
         src = ./.;
 
         meta = with pkgs.lib; {
-          description = "yet another r2wars implementation";
+          description = "Yet another r2wars implementation";
           homepage    = "https://git.emile.space/hanemile/r2wars-rs";
           license     = licenses.mit;
           platforms   = platforms.all;
@@ -27,6 +26,10 @@
           ];
         };
       };
+      
+    in rec {
+      packages."x86_64-linux".r2wars-rs = r2wars-rs;
+      packages."aarch64-darwin".r2wars-rs = r2wars-rs;
     
       # For `nix build` & `nix run`:
       defaultPackage = packages."x86_64-linux".r2wars-rs;
@@ -39,6 +42,7 @@
       # hydraJobs."<attr>"."<system>" = derivation;
       hydraJobs = {
         build."x86_64-linux" = packages."x86_64-linux".r2wars-r2;
+        build."aarch64-darwin" = packages."aarch64-darwin".r2wars-r2;
       };
     };
 }
\ No newline at end of file