2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2021-01-09 10:05:03 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, appstream-glib
|
|
|
|
, dbus
|
|
|
|
, pango
|
|
|
|
, pcre2
|
|
|
|
, tmux
|
|
|
|
, vte
|
|
|
|
, wrapGAppsHook
|
2022-03-30 09:31:56 +00:00
|
|
|
, nixosTests
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "germinal";
|
|
|
|
version = "26";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Keruspe";
|
|
|
|
repo = "Germinal";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-HUi+skF4bJj5CY2cNTOC4tl7jhvpXYKqBx2rqKzjlo0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
|
|
|
|
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-17 00:15:33 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ tmux ]}" \
|
2021-01-09 10:05:03 +00:00
|
|
|
"''${gappsWrapperArgs[@]}"
|
|
|
|
runHook postFixup
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.germinal;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "A minimal terminal emulator";
|
|
|
|
homepage = "https://github.com/Keruspe/Germinal";
|
|
|
|
license = with licenses; gpl3Plus;
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|