Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
wip: add commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ttak0422 committed Mar 2, 2024
1 parent 81e592c commit fbcd012
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,23 @@
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
imports = [ ./neovim ];
perSystem = { inputs, pkgs, ... }: {
apps = {
show-latest-inputs = let
drv = pkgs.writeShellApplication {
name = "app";
runtimeInputs = with pkgs; [ jq coreutils ];
text = ''
nix flake show --json \
| jq -r '.packages.["x86_64-linux"] | keys[]' \
| tr '\n' ' '
'';
};
in {
type = "app";
program = "${drv}/bin/app";
};
};
};
};
}

0 comments on commit fbcd012

Please sign in to comment.