From 1c88e73c7810860e34cac27cecf77f3832c00750 Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Fri, 28 Oct 2022 19:56:35 +0200 Subject: [PATCH] flake: simplify nix-on-droid app definition --- flake.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index ebca6ee..ccc30ea 100644 --- a/flake.nix +++ b/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};