flake: simplify nix-on-droid app definition

This commit is contained in:
Tobias Happ 2022-10-28 19:56:35 +02:00
parent 4ab4767d50
commit 1c88e73c78

View file

@ -31,11 +31,6 @@
overlays = [ overlay ]; overlays = [ overlay ];
}; };
app = {
type = "app";
program = "${pkgs'.callPackage ./nix-on-droid { }}/bin/nix-on-droid";
};
formatterPackArgsFor = forEachSystem (system: { formatterPackArgsFor = forEachSystem (system: {
inherit nixpkgs system; inherit nixpkgs system;
checkFiles = [ ./. ]; checkFiles = [ ./. ];
@ -51,10 +46,14 @@
}); });
in in
{ {
apps.aarch64-linux = { apps = forEachSystem (system: {
default = app; default = self.apps.${system}.nix-on-droid;
nix-on-droid = app;
}; nix-on-droid = {
type = "app";
program = "${self.packages.${system}.nix-on-droid}/bin/nix-on-droid";
};
});
checks = forEachSystem (system: { checks = forEachSystem (system: {
nix-formatter-pack-check = nix-formatter-pack.lib.mkCheck formatterPackArgsFor.${system}; nix-formatter-pack-check = nix-formatter-pack.lib.mkCheck formatterPackArgsFor.${system};