mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-02 14:13:07 +00:00
flake nix allow build for all four archs
This commit is contained in:
parent
35c0f1964d
commit
52966cb874
19
flake.nix
19
flake.nix
@ -39,13 +39,24 @@
|
||||
in rec {
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = pkgsFor.${system};
|
||||
targets = [
|
||||
"libsds-android-arm64"
|
||||
"libsds-android-amd64"
|
||||
"libsds-android-x86"
|
||||
"libsds-android-arm"
|
||||
];
|
||||
in rec {
|
||||
libsds-android-arm64 = pkgs.callPackage ./nix/default.nix {
|
||||
# Generate a package for each target dynamically
|
||||
androidPackages = builtins.listToAttrs (map (t: {
|
||||
name = t;
|
||||
value = pkgs.callPackage ./nix/default.nix {
|
||||
inherit stableSystems;
|
||||
src = self;
|
||||
targets = ["libsds-android-arm64"];
|
||||
targets = [ t ];
|
||||
};
|
||||
}) targets);
|
||||
|
||||
# Existing non-Android package
|
||||
libsds = pkgs.callPackage ./nix/default.nix {
|
||||
inherit stableSystems;
|
||||
src = self;
|
||||
@ -54,9 +65,5 @@
|
||||
|
||||
default = libsds;
|
||||
});
|
||||
|
||||
devShells = forAllSystems (system: {
|
||||
default = pkgsFor.${system}.callPackage ./nix/shell.nix {};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user