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 ];
|
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};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue