From c13de110dceb1f3aa33b480fb0ab270f2f4021e4 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sun, 4 Feb 2024 10:30:47 -0600 Subject: [PATCH] Trying smartcalc instead of octave --- user/pkgs/smartcalc.nix | 27 +++++++++++++++++++++++++++ user/shell/cli-collection.nix | 3 ++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 user/pkgs/smartcalc.nix diff --git a/user/pkgs/smartcalc.nix b/user/pkgs/smartcalc.nix new file mode 100644 index 0000000..8258f2a --- /dev/null +++ b/user/pkgs/smartcalc.nix @@ -0,0 +1,27 @@ +{ lib, pkgs, ... }: +let + rustPlatform = pkgs.makeRustPlatform { + cargo = pkgs.rust-bin.stable.latest.minimal; + rustc = pkgs.rust-bin.stable.latest.minimal; + }; +in +rustPlatform.buildRustPackage rec { + pname = "smartcalc-tui"; + version = "1.0.7"; + + src = fetchTarball { + url = "https://github.com/superhawk610/smartcalc-tui/archive/refs/tags/v1.0.7.tar.gz"; + sha256 = "1dv24rsj87avpbrmab0hy3v729fdqh1cfbvl1xsjmfn8y35z4m5m"; + }; + + cargoSha256 = "sha256-0AWsJccfzkUkpB6imibN6iUNDEx3vrX9kEgD98nXURw="; + + checkType = "debug"; + + meta = with lib; { + description = "Terminal UI for erhanbaris/smartcalc"; + homepage = "https://github.com/superhawk610/smartcalc-tui"; + license = licenses.mit; + maintainers = []; + }; +} diff --git a/user/shell/cli-collection.nix b/user/shell/cli-collection.nix index 135604d..88e7297 100644 --- a/user/shell/cli-collection.nix +++ b/user/shell/cli-collection.nix @@ -16,12 +16,13 @@ htop hwinfo unzip - octave brightnessctl w3m fzf pandoc pciutils + (pkgs.callPackage ../pkgs/smartcalc.nix { }) + (pkgs.writeShellScriptBin "sc" ''smartcalc'') #(pkgs.callPackage ../pkgs/ytsub.nix { }) #(pkgs.callPackage ../pkgs/russ.nix { }) #(pkgs.python3Packages.callPackage ../pkgs/impressive.nix { })