mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
flake: simplify nix-on-droid app definition
This commit is contained in:
parent
4ab4767d50
commit
1c88e73c78
1 changed files with 8 additions and 9 deletions
17
flake.nix
17
flake.nix
|
|
@ -31,11 +31,6 @@
|
|||
overlays = [ overlay ];
|
||||
};
|
||||
|
||||
app = {
|
||||
type = "app";
|
||||
program = "${pkgs'.callPackage ./nix-on-droid { }}/bin/nix-on-droid";
|
||||
};
|
||||
|
||||
formatterPackArgsFor = forEachSystem (system: {
|
||||
inherit nixpkgs system;
|
||||
checkFiles = [ ./. ];
|
||||
|
|
@ -51,10 +46,14 @@
|
|||
});
|
||||
in
|
||||
{
|
||||
apps.aarch64-linux = {
|
||||
default = app;
|
||||
nix-on-droid = app;
|
||||
};
|
||||
apps = forEachSystem (system: {
|
||||
default = self.apps.${system}.nix-on-droid;
|
||||
|
||||
nix-on-droid = {
|
||||
type = "app";
|
||||
program = "${self.packages.${system}.nix-on-droid}/bin/nix-on-droid";
|
||||
};
|
||||
});
|
||||
|
||||
checks = forEachSystem (system: {
|
||||
nix-formatter-pack-check = nix-formatter-pack.lib.mkCheck formatterPackArgsFor.${system};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue