2023-09-10 01:11:24 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-01-06 15:19:47 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
2023-09-10 01:11:24 +00:00
|
|
|
, autoreconfHook
|
2021-01-06 15:19:47 +00:00
|
|
|
, dbus
|
|
|
|
, pango
|
|
|
|
, pcre2
|
2023-09-10 01:11:24 +00:00
|
|
|
, pkg-config
|
2021-01-06 15:19:47 +00:00
|
|
|
, tmux
|
|
|
|
, vte
|
|
|
|
, wrapGAppsHook
|
2020-11-13 18:54:56 +00:00
|
|
|
, nixosTests
|
2021-01-06 15:19:47 +00:00
|
|
|
}:
|
|
|
|
|
2023-09-10 01:11:24 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-01-06 15:19:47 +00:00
|
|
|
pname = "germinal";
|
|
|
|
version = "26";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Keruspe";
|
|
|
|
repo = "Germinal";
|
2023-09-10 01:11:24 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-HUi+skF4bJj5CY2cNTOC4tl7jhvpXYKqBx2rqKzjlo0=";
|
2021-01-06 15:19:47 +00:00
|
|
|
};
|
|
|
|
|
2023-09-10 01:11:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2021-01-06 15:19:47 +00:00
|
|
|
buildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
dbus
|
|
|
|
pango
|
|
|
|
pcre2
|
|
|
|
vte
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-dbusservicesdir=${placeholder "out"}/etc/dbus-1/system-services/"
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
runHook preFixup
|
|
|
|
wrapProgram $out/bin/germinal \
|
2021-01-15 13:21:58 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ tmux ]}" \
|
2021-01-06 15:19:47 +00:00
|
|
|
"''${gappsWrapperArgs[@]}"
|
|
|
|
runHook postFixup
|
|
|
|
'';
|
|
|
|
|
2020-11-13 18:54:56 +00:00
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.germinal;
|
|
|
|
|
2023-09-10 01:11:24 +00:00
|
|
|
meta = {
|
2021-01-06 15:19:47 +00:00
|
|
|
description = "A minimal terminal emulator";
|
|
|
|
homepage = "https://github.com/Keruspe/Germinal";
|
2023-09-10 01:11:24 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
mainProgram = "germinal";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2021-01-06 15:19:47 +00:00
|
|
|
};
|
2023-09-10 01:11:24 +00:00
|
|
|
})
|