mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-05 23:53:08 +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 {
|
in rec {
|
||||||
packages = forAllSystems (system: let
|
packages = forAllSystems (system: let
|
||||||
pkgs = pkgsFor.${system};
|
pkgs = pkgsFor.${system};
|
||||||
|
targets = [
|
||||||
|
"libsds-android-arm64"
|
||||||
|
"libsds-android-amd64"
|
||||||
|
"libsds-android-x86"
|
||||||
|
"libsds-android-arm"
|
||||||
|
];
|
||||||
in rec {
|
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;
|
inherit stableSystems;
|
||||||
src = self;
|
src = self;
|
||||||
targets = ["libsds-android-arm64"];
|
targets = [ t ];
|
||||||
};
|
};
|
||||||
|
}) targets);
|
||||||
|
|
||||||
|
# Existing non-Android package
|
||||||
libsds = pkgs.callPackage ./nix/default.nix {
|
libsds = pkgs.callPackage ./nix/default.nix {
|
||||||
inherit stableSystems;
|
inherit stableSystems;
|
||||||
src = self;
|
src = self;
|
||||||
@ -54,9 +65,5 @@
|
|||||||
|
|
||||||
default = libsds;
|
default = libsds;
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = forAllSystems (system: {
|
|
||||||
default = pkgsFor.${system}.callPackage ./nix/shell.nix {};
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user