2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
2020-12-09 12:39:15 +00:00
|
|
|
, glibcLocales
|
2020-04-24 23:36:52 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, keybinder3
|
|
|
|
, libnotify
|
|
|
|
, libutempter
|
|
|
|
, vte
|
2021-06-28 23:13:55 +00:00
|
|
|
, libwnck
|
2022-03-30 09:31:56 +00:00
|
|
|
, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "guake";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "3.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Guake";
|
|
|
|
repo = "guake";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-BW13fBH26UqMPMjV8JC4QkpgzyoPfCpAfSkJD68uOZU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
python3.pkgs.pip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-12-09 12:39:15 +00:00
|
|
|
glibcLocales
|
2020-04-24 23:36:52 +00:00
|
|
|
gtk3
|
|
|
|
keybinder3
|
|
|
|
libnotify
|
2021-06-28 23:13:55 +00:00
|
|
|
libwnck
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vte
|
|
|
|
];
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
makeWrapperArgs = [ "--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
dbus-python
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
2022-10-21 18:38:19 +00:00
|
|
|
setuptools-scm
|
|
|
|
pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [
|
2022-10-21 18:38:19 +00:00
|
|
|
"PREFIX=${placeholder "out"}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
2021-01-17 00:15:33 +00:00
|
|
|
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libutempter ]}")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.guake;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Drop-down terminal for GNOME";
|
|
|
|
homepage = "http://guake-project.org";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|