git.iko.soy/typeable/nixpkgs
on master help sign in
guake: 0.8.3 → 3.1.0
commita9bc7b7c7350af40e47735cf8e4c4030514c2880 authorJan Tojnar <jtojnar@gmail.com> dateMon 9 Apr 2018, 13:46 (9 years ago) parent24827a5
2 files changed+28−59
pkgs/applications/misc/guake/default.nix+27−57 pkgs/top-level/all-packages.nix+1−2
pkgs/applications/misc/guake/default.nix+27−57
@@ -1,76 +1,46 @@
1−/* Beware!
2−After starting Guake it will give the error message "Guake can not init! Gconf Error. Have you installed guake.schemas properly?",
3−which will have to be resolved manually, because I have not found a way to automate this, without being impure.
4−
5−If you have Guake installed, you can use `nix-build -A gnome3.guake` to get the path to the build directory in the nix store,
6−which then can be used in the following command to install the schemas file of Guake:
7−gconftool-2 --install-schema-file /path/returned/by/nix-build/share/gconf/schemas/guake.schemas
8−
9−It can be removed again by the following command:
10−gconftool-2 --recursive-unset /apps/guake
11−*/
12−{ stdenv, fetchurl, lib
13−, pkgconfig, libtool, intltool, makeWrapper
14−, dbus, gtk2, gconf, python2Packages, libutempter, vte, keybinder, gnome2, gnome3 }:
15−
16−with lib;
1+{ stdenv, fetchFromGitHub, fetchpatch, python3, gettext, gobjectIntrospection, wrapGAppsHook, glibcLocales
2+, gtk3, keybinder3, libnotify, libutempter, vte }:
173
184let
19− inherit (python2Packages) python;
20− inputs = [ dbus gtk2 gconf python libutempter vte keybinder gnome3.gnome-common ];
21− pyPath = makeSearchPathOutput "lib" python.sitePackages (attrVals [ "dbus-python" "notify" "pyGtkGlade" "pyxdg" ] python2Packages ++ [ gnome2.gnome_python ]);
22− in stdenv.mkDerivation rec {
5+ version = "3.1.0";
6+in python3.pkgs.buildPythonApplication rec {
237 name = "guake-${version}";
24− version = "0.8.3";
8+ format = "other";
259
26− src = fetchurl {
27− url = "https://github.com/Guake/guake/archive/${version}.tar.gz";
28− sha256 = "1lbmdz3i9a97840h8239s360hd37nmhy3hs6kancxbzl1512ak1y";
10+ src = fetchFromGitHub {
11+ owner = "Guake";
12+ repo = "guake";
13+ rev = version;
14+ sha256 = "0wyis7vxfhwrpq5r72c58k7hqzbk0f5ilm1zffcmbryvy11abgmx";
2915 };
3016
31− nativeBuildInputs = [ pkgconfig libtool intltool makeWrapper ];
17+ patches = [
18+ # https://github.com/Guake/guake/issues/1264
19+ (fetchpatch {
20+ url = https://github.com/Guake/guake/commit/f289aa381bc5fffe83b1ba385c606a2e5cdc94a8.patch;
21+ sha256 = "038niw44q14fs34nha1lz9vmxhf0l766ni8nsdxpid4crra2wjd3";
22+ })
23+ ];
3224
33− buildInputs = inputs ++ (with python2Packages; [ pyGtkGlade pyxdg ]);
25+ nativeBuildInputs = [ gettext gobjectIntrospection wrapGAppsHook python3.pkgs.pip glibcLocales ];
3426
35− propagatedUserEnvPkgs = [ gconf.out ];
27+ buildInputs = [ gtk3 keybinder3 libnotify python3 vte ];
3628
37− patchPhase = ''
38− patchShebangs .
39− '';
29+ propagatedBuildInputs = with python3.pkgs; [ dbus-python pbr pycairo pygobject3 ];
4030
41− configureScript = "./autogen.sh";
31+ LC_ALL = "en_US.UTF-8"; # fixes weird encoding error, see https://github.com/NixOS/nixpkgs/pull/38642#issuecomment-379727699
4232
43− configureFlags = [
44− "--sysconfdir=/etc"
45− "--localstatedir=/var"
46− "--disable-schemas-install"
47− ];
33+ PBR_VERSION = version; # pbr needs either .git directory, sdist, or env var
4834
49− installFlags = [
50− # Configuring the installation to not install gconf schemas is not always supported,
51− # therefore gconftool-2 has this variable, which will make gconftool-2 not update any of the databases.
52− "GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1"
53− "sysconfdir=\${out}/etc"
54− "localstatedir=\${TMPDIR}"
35+ makeFlags = [
36+ "prefix=$(out)"
5537 ];
5638
57− postInstall = ''
58− mkdir -p $out/share/gconf/schemas
59− cp data/guake.schemas $out/share/gconf/schemas
60− '';
61−
62− postFixup = ''
63− for bin in $out/bin/{guake,guake-prefs}; do
64− substituteInPlace $bin \
65− --replace '/usr/bin/env python2' ${python.interpreter}
66− wrapProgram $bin \
67− --prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
68− --prefix LD_LIBRARY_PATH : ${makeLibraryPath inputs} \
69− --prefix PYTHONPATH : "$out/${python.sitePackages}:${pyPath}:$PYTHONPATH"
70− done
39+ preFixup = ''
40+ gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ libutempter ]}")
7141 '';
7242
73− meta = {
43+ meta = with stdenv.lib; {
7444 description = "Drop-down terminal for GNOME";
7545 homepage = http://guake-project.org;
7646 license = licenses.gpl2;
pkgs/top-level/all-packages.nix+1−2
@@ -16050,8 +16050,7 @@ with pkgs;
1605016050 };
1605116051
1605216052 guake = callPackage ../applications/misc/guake {
16053− gconf = gnome2.GConf;
16054− vte = gnome2.vte.override { pythonSupport = true; };
16053+ inherit (gnome3) vte;
1605516054 };
1605616055
1605716056 guitone = callPackage ../applications/version-management/guitone {