mirror of
https://github.com/anotherhadi/nur-packages.git
synced 2026-10-05 19:28:27 +02:00
@@ -12,4 +12,5 @@
|
||||
sheets = pkgs.callPackage ./pkgs/sheets {};
|
||||
fztea = pkgs.callPackage ./pkgs/fztea {};
|
||||
monitui = pkgs.callPackage ./pkgs/monitui {};
|
||||
cheatmd = pkgs.callPackage ./pkgs/cheatmd {};
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user