2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromSourcehut
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2024-01-02 11:29:13 +00:00
|
|
|
, wails
|
|
|
|
, scdoc
|
|
|
|
, installShellFiles
|
|
|
|
, xorg
|
|
|
|
, gtk3
|
|
|
|
, webkitgtk
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, snippetexpanderd
|
2024-04-21 15:54:59 +00:00
|
|
|
, snippetexpanderx
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
inherit (snippetexpanderd) src version;
|
|
|
|
|
|
|
|
pname = "snippetexpandergui";
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-W9NkENdZRzqSAONI9QS2EI5aERK+AaPqwYwITKLwXQE=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
proxyVendor = true;
|
|
|
|
|
|
|
|
modRoot = "cmd/snippetexpandergui";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wails
|
|
|
|
scdoc
|
|
|
|
installShellFiles
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xorg.libX11
|
|
|
|
gtk3
|
|
|
|
webkitgtk
|
|
|
|
snippetexpanderd
|
2024-04-21 15:54:59 +00:00
|
|
|
snippetexpanderx
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2024-04-21 15:54:59 +00:00
|
|
|
"-X 'main.version=${src.rev}'"
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
tags = [
|
|
|
|
"desktop"
|
|
|
|
"production"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv build/linux/share $out/share
|
|
|
|
make man
|
|
|
|
installManPage snippetexpandergui.1
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Ensure snippetexpanderd and snippetexpanderx are available to start/stop.
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ snippetexpanderd snippetexpanderx ]}
|
|
|
|
)
|
2024-01-02 11:29:13 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = {
|
2024-01-02 11:29:13 +00:00
|
|
|
description = "Your little expandable text snippet helper GUI";
|
|
|
|
homepage = "https://snippetexpander.org";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ ianmjones ];
|
|
|
|
platforms = lib.platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "snippetexpandergui";
|
|
|
|
};
|
|
|
|
}
|