From 03a3c474f56083fa1fd94cda82698cfb6d12c0ca Mon Sep 17 00:00:00 2001 From: reo101 Date: Sun, 19 Feb 2023 13:54:02 +0200 Subject: [PATCH] feat(flake): add `apps` --- apps/default.nix | 8 ++++++++ flake.nix | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 apps/default.nix diff --git a/apps/default.nix b/apps/default.nix new file mode 100644 index 0000000..5a49c26 --- /dev/null +++ b/apps/default.nix @@ -0,0 +1,8 @@ +# Custom apps, that can be defined similarly to ones from nixpkgs +# You can build them using 'nix run .#example' + +{ pkgs ? (import ../nixpkgs.nix) { } +, ... +}: { + # example = import ./example { inherit pkgs; }; +} diff --git a/flake.nix b/flake.nix index 8254730..8ef8553 100644 --- a/flake.nix +++ b/flake.nix @@ -81,7 +81,9 @@ ); # Apps (`nix run`) - apps = { }; + apps = forEachPkgs (pkgs: + import ./apps { inherit pkgs; } + ); # Dev Shells (`nix develop`) devShells = forEachPkgs (pkgs: