Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,21 @@
wrapProgram $out/bin/dbmate-tool \
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.overmind pkgs.dbmate pkgs.nix pkgs.jq pkgs.yq ]}
'';
show-commands = pkgs.runCommand "show-commands" {
nativeBuildInputs = [ pkgs.makeWrapper ];
buildInputs = [ pkgs.nushell ];
} ''
mkdir -p $out/bin
cat > $out/bin/show-commands << 'EOF'
#!${pkgs.nushell}/bin/nu
let json_output = (nix flake show --json --quiet --all-systems | from json)
let apps = ($json_output | get apps.${system})
$apps | transpose name info | select name | each { |it| echo $"Run this app with: nix run .#($it.name)" }
EOF
chmod +x $out/bin/show-commands
wrapProgram $out/bin/show-commands \
--prefix PATH : ${pkgs.nushell}/bin
'';
update-readme = pkgs.runCommand "update-readme" {
nativeBuildInputs = [ pkgs.makeWrapper ];
buildInputs = [ pkgs.nushell ];
Expand Down Expand Up @@ -831,8 +846,8 @@
start-server = mkApp "start-server" "start-postgres-server";
start-client = mkApp "start-client" "start-postgres-client";
start-replica = mkApp "start-replica" "start-postgres-replica";
migrate-postgres = mkApp "migrate-tool" "migrate-postgres";
sync-exts-versions = mkApp "sync-exts-versions" "sync-exts-versions";
# migrate-postgres = mkApp "migrate-tool" "migrate-postgres";
# sync-exts-versions = mkApp "sync-exts-versions" "sync-exts-versions";
pg-restore = mkApp "pg-restore" "pg-restore";
local-infra-bootstrap = mkApp "local-infra-bootstrap" "local-infra-bootstrap";
dbmate-tool = mkApp "dbmate-tool" "dbmate-tool";
Expand Down