Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions pkgs/applications/office/espanso/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{ stdenv
, fetchFromGitHub
, rustPlatform
, pkgconfig
, extra-cmake-modules
, libX11
, libXi
, libXtst
, libnotify
, openssl
, xclip
, xdotool
}:

rustPlatform.buildRustPackage rec {
pname = "espanso";
version = "0.6.3";

src = fetchFromGitHub {
owner = "federico-terzi";
repo = pname;
rev = "v${version}";
sha256 = "1x5p7hniapggqd18rx26mjvdf33z7rm7zz5vsqm2siv3mcl19033";
};

cargoSha256 = "0liwwdncymjql5dw7rwhhimcr7qdbyvfgmsd0bawvi0ym7m1v408";

nativeBuildInputs = [
extra-cmake-modules
pkgconfig
];

buildInputs = [
libX11
libXtst
libXi
libnotify
openssl
xdotool
];

# Some tests require networking
doCheck = false;
Comment thread
kimat marked this conversation as resolved.
Outdated

meta = with stdenv.lib; {
description = "Cross-platform Text Expander written in Rust";
homepage = "https://espanso.org";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ kimat ];
platforms = platforms.all;
Comment thread
kimat marked this conversation as resolved.
Outdated

longDescription = ''
Espanso detects when you type a keyword and replaces it while you're typing.
'';
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,8 @@ in

eschalot = callPackage ../tools/security/eschalot { };

espanso = callPackage ../applications/office/espanso { };

esphome = callPackage ../tools/misc/esphome { };

esptool = callPackage ../tools/misc/esptool { };
Expand Down