git.iko.soy/typeable/nixpkgs
on master help sign in
guake: init at 0.8.3 (close #11027)

There's a catch noted at the top of the expression. (vcunat moved it there from the commit message)

commit7f58e162bc60daf51961fda6f5e721dde529539b authorMatthijs Steen <emailmatthijs@gmail.com> dateSun 15 Nov 2015, 00:16 (11 years ago) parente6cc519
3 files changed+113
pkgs/applications/misc/guake/default.nix+77 pkgs/development/libraries/libutempter/default.nix+29 pkgs/top-level/all-packages.nix+7
pkgs/applications/misc/guake/default.nixnew file+77
@@ -0,0 +1,77 @@
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, python2, python2Packages, libutempter, vte, keybinder, gnome2, gnome3 }:
15+
16+with lib;
17+
18+let inputs = [ dbus gtk2 gconf python2 libutempter vte keybinder gnome3.gnome_common ];
19+ pySubDir = "lib/${python2.libPrefix}/site-packages";
20+ pyPath = makeSearchPath pySubDir (attrVals [ "dbus" "notify" "pyGtkGlade" "pyxdg" ] python2Packages ++ [ gnome2.gnome_python ]);
21+ in stdenv.mkDerivation rec {
22+ name = "guake-${version}";
23+ version = "0.8.3";
24+
25+ src = fetchurl {
26+ url = "https://github.com/Guake/guake/archive/${version}.tar.gz";
27+ sha256 = "1lbmdz3i9a97840h8239s360hd37nmhy3hs6kancxbzl1512ak1y";
28+ };
29+
30+ nativeBuildInputs = [ pkgconfig libtool intltool makeWrapper ];
31+
32+ buildInputs = inputs ++ (with python2Packages; [ pyGtkGlade pyxdg ]);
33+
34+ patchPhase = ''
35+ patchShebangs .
36+ '';
37+
38+ configureScript = "./autogen.sh";
39+
40+ configureFlags = [
41+ "--sysconfdir=/etc"
42+ "--localstatedir=/var"
43+ "--disable-schemas-install"
44+ ];
45+
46+ installFlags = [
47+ # Configuring the installation to not install gconf schemas is not always supported,
48+ # therefore gconftool-2 has this variable, which will make gconftool-2 not update any of the databases.
49+ "GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1"
50+ "sysconfdir=\${out}/etc"
51+ "localstatedir=\${TMPDIR}"
52+ ];
53+
54+ postInstall = ''
55+ mkdir -p $out/share/gconf/schemas
56+ cp data/guake.schemas $out/share/gconf/schemas
57+ '';
58+
59+ postFixup = ''
60+ for bin in $out/bin/{guake,guake-prefs}; do
61+ substituteInPlace $bin \
62+ --replace '/usr/bin/env python2' ${python2}/bin/python2
63+ wrapProgram $bin \
64+ --prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
65+ --prefix LD_LIBRARY_PATH : ${makeLibraryPath inputs} \
66+ --prefix PYTHONPATH : "$out/${pySubDir}:${pyPath}:$PYTHONPATH"
67+ done
68+ '';
69+
70+ meta = {
71+ description = "Drop-down terminal for GNOME";
72+ homepage = http://guake-project.org;
73+ license = licenses.gpl2;
74+ platforms = platforms.linux;
75+ maintainers = [ maintainers.msteen ];
76+ };
77+}
pkgs/development/libraries/libutempter/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ stdenv, fetchurl, lib, glib }:
2+
3+with lib;
4+
5+stdenv.mkDerivation rec {
6+ name = "libutempter-${version}";
7+ version = "1.1.6";
8+
9+ src = fetchurl {
10+ url = "http://archive.ubuntu.com/ubuntu/pool/main/libu/libutempter/libutempter_${version}.orig.tar.bz2";
11+ sha256 = "15y3xbgznjxnfmix4xg3bwmqdvghdw7slbhazb0ybmyf65gmd65q";
12+ };
13+
14+ buildInputs = [ glib ];
15+
16+ installFlags = [
17+ "libdir=\${out}/lib"
18+ "libexecdir=\${out}/lib"
19+ "includedir=\${out}/include"
20+ "mandir=\${out}/share/man"
21+ ];
22+
23+ meta = {
24+ description = "Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files";
25+ license = licenses.lgpl21Plus;
26+ platforms = platforms.linux;
27+ maintainers = [ maintainers.msteen ];
28+ };
29+}
pkgs/top-level/all-packages.nix+7
@@ -7689,6 +7689,8 @@ let
76897689
76907690 libusbmuxd = callPackage ../development/libraries/libusbmuxd { };
76917691
7692+ libutempter = callPackage ../development/libraries/libutempter { };
7693+
76927694 libunwind = if stdenv.isDarwin
76937695 then darwin.libunwind
76947696 else callPackage ../development/libraries/libunwind { };
@@ -12117,6 +12119,11 @@ let
1211712119 inherit (gnome2) gtk;
1211812120 };
1211912121
12122+ guake = callPackage ../applications/misc/guake {
12123+ gconf = gnome.GConf;
12124+ vte = gnome.vte.override { pythonSupport = true; };
12125+ };
12126+
1212012127 guitone = callPackage ../applications/version-management/guitone {
1212112128 graphviz = graphviz_2_32;
1212212129 };