init cheatmd

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-24 10:37:40 +02:00
parent 61092670ed
commit f6fb63c9be
2 changed files with 37 additions and 0 deletions
+1
View File
@@ -12,4 +12,5 @@
sheets = pkgs.callPackage ./pkgs/sheets {};
fztea = pkgs.callPackage ./pkgs/fztea {};
monitui = pkgs.callPackage ./pkgs/monitui {};
cheatmd = pkgs.callPackage ./pkgs/cheatmd {};
}
+36
View File
@@ -0,0 +1,36 @@
{
lib,
buildGo126Module,
fetchFromGitHub,
}:
buildGo126Module rec {
pname = "cheatmd";
version = "1.0.0";
src = fetchFromGitHub {
owner = "cheatmd-dev";
repo = "cheatmd";
rev = "v${version}";
hash = "sha256-939bFkzQcaUH7J8l+C0CkooCvV15MRmYmpOnRgei4LQ=";
};
vendorHash = "sha256-C3E64LYi5ReqQT9WcN8KFhi3oUkenfXf/1Y/s/sb4Mg=";
subPackages = [ "cmd/cheatmd" ];
ldflags = [
"-s"
"-w"
"-X main.version=v${version}"
];
meta = with lib; {
description = "Executable Markdown cheatsheets with variable prompts, pickers, and shell integration for bash/zsh/tmux/zellij";
homepage = "https://cheatmd.dev";
changelog = "https://github.com/cheatmd-dev/cheatmd/releases/tag/v${version}";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ ];
mainProgram = "cheatmd";
};
}