mirror of
https://github.com/anotherhadi/settuings.git
synced 2026-10-05 16:18:24 +02:00
30 lines
874 B
Nix
30 lines
874 B
Nix
{
|
|
pkgs,
|
|
buildGoApplication,
|
|
}: let
|
|
pname = "settuings";
|
|
version = "0.0.2";
|
|
ldflags = ["-s" "-w" "-X main.version=${version}"];
|
|
pkg = buildGoApplication {
|
|
inherit pname version ldflags;
|
|
src = ../.;
|
|
modules = ./gomod2nix.toml;
|
|
nativeBuildInputs = [pkgs.installShellFiles];
|
|
env.GOTOOLCHAIN = "local";
|
|
postInstall = ''
|
|
installShellCompletion --cmd settuings \
|
|
--bash <($out/bin/settuings completion bash) \
|
|
--zsh <($out/bin/settuings completion zsh) \
|
|
--fish <($out/bin/settuings completion fish)
|
|
'';
|
|
meta = with pkgs.lib; {
|
|
description = "A TUI to manage your Linux system settings like wifi, bluetooth, and more, without leaving the terminal.";
|
|
homepage = "https://github.com/anotherhadi/settuings";
|
|
platforms = platforms.unix;
|
|
};
|
|
};
|
|
in {
|
|
"${pname}" = pkg;
|
|
default = pkg;
|
|
}
|