This repository has no description
719 B
29 lines
1{ ... }:
2{
3 perSystem =
4 { pkgs, ... }:
5 {
6 packages.menu =
7 if pkgs.stdenv.hostPlatform.isDarwin then
8 (pkgs.writeShellApplication {
9 name = "menu";
10 runtimeInputs = [
11 pkgs.choose-gui
12 pkgs.fzf
13 ];
14 text = builtins.readFile ./menu-darwin.sh;
15 })
16 else if pkgs.stdenv.hostPlatform.isLinux then
17 (pkgs.writeShellApplication {
18 name = "menu";
19 runtimeInputs = [
20 pkgs.rofi
21 pkgs.wofi
22 pkgs.fzf
23 ];
24 text = builtins.readFile ./menu-linux.sh;
25 })
26 else
27 throw "unsupported system";
28 };
29}