Support aarch64 in flake.nix
This commit is contained in:
16
flake.nix
16
flake.nix
@@ -2,12 +2,12 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, ... }: {
|
outputs = { self, nixpkgs, ... }: let
|
||||||
packages.x86_64-linux = let
|
forAllSystems = f: (nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs { inherit system; };
|
||||||
system = "x86_64-linux";
|
in f { inherit pkgs system; } ));
|
||||||
};
|
in {
|
||||||
in {
|
packages = forAllSystems ({pkgs, system, ...}: {
|
||||||
rainbowrss = pkgs.rustPlatform.buildRustPackage rec {
|
rainbowrss = pkgs.rustPlatform.buildRustPackage rec {
|
||||||
pname = "rainbowrss";
|
pname = "rainbowrss";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
@@ -25,8 +25,8 @@
|
|||||||
cargoLock.lockFile = ./Cargo.lock;
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
|
||||||
};
|
};
|
||||||
default = self.packages.x86_64-linux.rainbowrss;
|
default = self.packages."${system}".rainbowrss;
|
||||||
};
|
});
|
||||||
|
|
||||||
hydraJobs = {
|
hydraJobs = {
|
||||||
inherit (self)
|
inherit (self)
|
||||||
|
Reference in New Issue
Block a user