Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, pkg-config
|
|
, vala
|
|
, wrapGAppsHook3
|
|
, 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";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
vala
|
|
wrapGAppsHook3
|
|
installShellFiles
|
|
scdoc
|
|
];
|
|
|
|
buildInputs = [
|
|
at-spi2-atk
|
|
at-spi2-core
|
|
dbus
|
|
gtk3
|
|
ibus
|
|
libgee
|
|
xorg.libX11
|
|
snippetexpanderd
|
|
];
|
|
|
|
makeFlags = [ "VERSION=${src.rev}" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
install -m555 snippetexpanderx $out/bin/
|
|
installManPage snippetexpanderx.1
|
|
runHook postInstall
|
|
'';
|
|
|
|
# There are no tests.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Your little expandable text snippet helper auto expander daemon";
|
|
homepage = "https://snippetexpander.org";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "snippetexpanderx";
|
|
};
|
|
}
|