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

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

74 lines
1.3 KiB
Nix
Raw Normal View History

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