nix: fix targets to not be nested under androidPackages

Otherwise this happens:

 > nix flake show
error: expected a derivation

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2025-10-24 12:12:55 +02:00
parent f3b084103d
commit 2a216f3eb5
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4

View File

@ -47,24 +47,23 @@
"libsds-android-arm"
];
in rec {
# 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 = [ t ];
};
}) targets);
# Existing non-Android package
# non-Android package
libsds = pkgs.callPackage ./nix/default.nix {
inherit stableSystems;
src = self;
targets = ["libsds"];
targets = [ "libsds" ];
};
default = libsds;
});
}
# Generate a package for each target dynamically
// builtins.listToAttrs (map (name: {
inherit name;
value = pkgs.callPackage ./nix/default.nix {
inherit stableSystems;
src = self;
targets = [ name ];
};
}) targets));
};
}