From 057de1edd40032d3d61a66d77f0534b8ca6fc3c3 Mon Sep 17 00:00:00 2001 From: Sebastian Moser Date: Mon, 24 Jun 2024 03:24:17 +0200 Subject: [PATCH] added vis (vi-scheduler) as nur pkg --- mods/vis.nix | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ nur.nix | 2 ++ 2 files changed, 57 insertions(+) create mode 100644 mods/vis.nix diff --git a/mods/vis.nix b/mods/vis.nix new file mode 100644 index 0000000..6d94ff7 --- /dev/null +++ b/mods/vis.nix @@ -0,0 +1,55 @@ +{ stdenv +, fetchFromGitHub +, ncurses +, cmake +, moreutils +, lib +, ftxui +}: + +stdenv.mkDerivation rec { + pname = "vis"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "0xdeadbeer"; + repo = "vis"; + rev = "v${version}"; + sha256 = "sha256-Lf+xbAivGdGbrZ4y3I3b7hGS2mBQZ/hJ2zu9+4zluOg="; + }; + + # this package builds with ftxui from nixpkgs which is v5.0.0 + # so i choose to use that, otherwise the v3.0.0 specified in the CMakeLists.txt of the projects source + # could be used like this + localFtxui = fetchFromGitHub { + owner = "ArthurSonzogni"; + repo = "ftxui"; + rev = "v3.0.0"; + sha256 = "sha256-2pCk4drYIprUKcjnrlX6WzPted7MUAp973EmAQX3RIE="; + }; + + cmakeFlags = [ "-DFETCHCONTENT_SOURCE_DIR_FTXUI=${ftxui.src}" ]; + + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + ncurses + moreutils + ftxui + ]; + + meta = with lib; { + description = "Vi Scheduler (vis) is a simple TUI program built for managing your schedules in a calendar-like grid."; + longDescription = '' + Vi Scheduler (VIS) is a lightweight tool that brings a Vim-like calendar to your terminal. It allows you to quickly view and edit your schedule, appointments, and tasks without leaving your command-line interface. + + Built using C++ and the Ncurses library, vis offers a fast and efficient way to manage your time in the terminal. It suppors various navigation and editing commands inspired by Vim, such as navigating between days or months, adding and deleting events. + ''; + homepage = "https://github.com/0xdeadbeer/vis"; + license = licenses.gpl3Only; + #maintainers = [ ]; + platforms = platforms.all; + }; +} diff --git a/nur.nix b/nur.nix index 68780a7..4f082f0 100644 --- a/nur.nix +++ b/nur.nix @@ -7,6 +7,8 @@ mac-telnet = pkgs.callPackage ./mods/mac-telnet.nix {}; + vis = pkgs.callPackage ./mods/vis.nix {}; + iio-hyprland = let repo = pkgs.fetchFromGitHub { owner = "yassineibr";