nixpkgs/pkgs/by-name/sn/snippetexpanderx/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.1 KiB
Nix
Raw Normal View History

2023-11-24 16:48:16 +00:00
{ lib
, stdenv
, fetchFromSourcehut
, pkg-config
, vala
, wrapGAppsHook
, installShellFiles
, scdoc
, at-spi2-atk
, at-spi2-core
, dbus
, gtk3
, ibus
, libgee
, xorg
, snippetexpanderd
}:
stdenv.mkDerivation rec {
inherit (snippetexpanderd) src version;
pname = "snippetexpanderx";
sourceRoot = "${src.name}/cmd/snippetexpanderx";
2023-11-24 16:48:16 +00:00
nativeBuildInputs = [
pkg-config
vala
wrapGAppsHook
installShellFiles
scdoc
];
buildInputs = [
at-spi2-atk
at-spi2-core
dbus
gtk3
ibus
libgee
xorg.libX11
snippetexpanderd
];
2024-03-29 17:54:53 +00:00
makeFlags = [ "VERSION=${src.rev}" ];
2023-11-24 16:48:16 +00:00
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m555 snippetexpanderx $out/bin/
installManPage snippetexpanderx.1
runHook postInstall
'';
# There are no tests.
doCheck = false;
2024-03-29 17:54:53 +00:00
meta = {
2023-11-24 16:48:16 +00:00
description = "Your little expandable text snippet helper auto expander daemon";
homepage = "https://snippetexpander.org";
2024-03-29 17:54:53 +00:00
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ ianmjones ];
platforms = lib.platforms.linux;
2023-11-24 16:48:16 +00:00
mainProgram = "snippetexpanderx";
};
}