mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
commit
8e60e221b5
24
pkgs/applications/misc/openbox-menu/default.nix
Normal file
24
pkgs/applications/misc/openbox-menu/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchurl, pkgconfig, glib, gtk, menu-cache }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openbox-menu-0.5.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bitbucket.org/fabriceT/openbox-menu/downloads/${name}.tar.bz2";
|
||||
sha256 = "11v3nlhqcnks5vms1a7rrvwvj8swc9axgjkp7z0r97lijsg6d3rj";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig glib gtk menu-cache ];
|
||||
|
||||
patches = [ ./with-svg.patch ];
|
||||
|
||||
installPhase = "make install prefix=$out";
|
||||
|
||||
meta = {
|
||||
description = "Dynamic XDG menu generator for Openbox";
|
||||
homepage = "http://mimasgpc.free.fr/openbox-menu.html";
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
maintainers = [ stdenv.lib.maintainers.romildo ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
11
pkgs/applications/misc/openbox-menu/with-svg.patch
Normal file
11
pkgs/applications/misc/openbox-menu/with-svg.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/Makefile.old 2013-12-11 06:39:44.397358610 +0100
|
||||
+++ b/Makefile 2013-12-11 06:39:51.082275037 +0100
|
||||
@@ -7,7 +7,7 @@
|
||||
CFLAGS+=-DWITH_ICONS
|
||||
# Uncomment this line if Openbox can display SVG icons
|
||||
# Check SVG support with '$ ldd /usr/bin/openbox | grep svg', librsvg must appear..
|
||||
-# CFLAGS+=-DWITH_SVG
|
||||
+CFLAGS+=-DWITH_SVG
|
||||
|
||||
prefix= /usr/local
|
||||
DESTDIR ?= $(prefix)
|
@ -17,8 +17,16 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0cxgb334zj6aszwiki9g10i56sm18i7w1kw52vdnwgzq27pv93qj";
|
||||
};
|
||||
|
||||
setlayoutSrc = fetchurl {
|
||||
url = "http://openbox.org/dist/tools/setlayout.c";
|
||||
sha256 = "1ci9lq4qqhl31yz1jwwjiawah0f7x0vx44ap8baw7r6rdi00pyiv";
|
||||
};
|
||||
|
||||
postBuild = "gcc -O2 -o setlayout $(pkg-config --cflags --libs x11) $setlayoutSrc";
|
||||
|
||||
# Openbox needs XDG_DATA_DIRS set or it can't find its default theme
|
||||
postInstall = ''
|
||||
cp -a setlayout "$out"/bin
|
||||
wrapProgram "$out/bin/openbox" --prefix XDG_DATA_DIRS : "$out/share"
|
||||
wrapProgram "$out/bin/openbox-session" --prefix XDG_DATA_DIRS : "$out/share"
|
||||
wrapProgram "$out/bin/openbox-gnome-session" --prefix XDG_DATA_DIRS : "$out/share"
|
||||
|
@ -9681,6 +9681,8 @@ let
|
||||
|
||||
openbox = callPackage ../applications/window-managers/openbox { };
|
||||
|
||||
openbox-menu = callPackage ../applications/misc/openbox-menu { };
|
||||
|
||||
openimageio = callPackage ../applications/graphics/openimageio { };
|
||||
|
||||
openjump = callPackage ../applications/misc/openjump { };
|
||||
|
Loading…
Reference in New Issue
Block a user