snipt: init at 0.1.0
This commit is contained in:
committed by
Michael Daniels
parent
06edbab502
commit
2f0431535f
@@ -0,0 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
libx11,
|
||||
libxi,
|
||||
libxtst,
|
||||
xdotool,
|
||||
libxkbcommon,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "snipt";
|
||||
version = "0.1.0";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snipt";
|
||||
repo = "snipt";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-UMsoTJtpS4vInviDdCrnZQk2scYHM/5a8l7/HK+o8Tc=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-mtw9mdUDxYhZcncTves0FH6COvRNVaMZOdapy3VEZrk=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
libx11
|
||||
libxi
|
||||
libxtst
|
||||
xdotool
|
||||
libxkbcommon
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Powerful text snippet expansion tool";
|
||||
longDescription = ''
|
||||
Snipt is a powerful text snippet expansion tool that boosts your productivity
|
||||
by replacing short text shortcuts with longer content.
|
||||
Just type a prefix (like `:`) followed by your shortcut,
|
||||
and snipt automatically expands it into your predefined text.
|
||||
'';
|
||||
homepage = "https://github.com/snipt/snipt";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ chillcicada ];
|
||||
mainProgram = "snipt";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user