Unverified Commit 9217de29 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #221729 from JohnJohnstone/master

rofi-blezz: init at unstable-2022-09-07
parents ffb9257c b2b37b54
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -9836,6 +9836,12 @@
    githubId = 32305209;
    name = "John Children";
  };
  johnjohnstone = {
   email = "jjohnstone@riseup.net";
   github = "johnjohnstone";
   githubId = 3208498;
   name = "John Johnstone";
  };
  johnmh = {
    email = "johnmh@openblox.org";
    github = "JohnMH";
+25 −0
Original line number Diff line number Diff line
From 7f5a652150aef9c098d2d5d4bc4f6d497609c47c Mon Sep 17 00:00:00 2001
From: john johnstone <jjohnstone@riseup.net>
Date: Sat, 11 Mar 2023 22:29:18 +0000
Subject: [PATCH] plugin install dir patch for nix

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 31d96d0..a7a589d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,7 @@ dnl ---------------------------------------------------------------------
 PKG_CHECK_MODULES([glib],     [glib-2.0 >= 2.40 gio-unix-2.0 gmodule-2.0])
 PKG_CHECK_MODULES([rofi],     [rofi])
 
-[rofi_PLUGIN_INSTALL_DIR]="`$PKG_CONFIG --variable=pluginsdir rofi`"
+[rofi_PLUGIN_INSTALL_DIR]="`echo $out/lib/rofi`"
 AC_SUBST([rofi_PLUGIN_INSTALL_DIR])
 
 LT_INIT([disable-static])
-- 
2.39.2
+38 −0
Original line number Diff line number Diff line
From ed8943fdd9ffe7d53a89b7cd18a08165708884ad Mon Sep 17 00:00:00 2001
From: john johnstone <jjohnstone@riseup.net>
Date: Sun, 12 Mar 2023 04:41:44 +0000
Subject: [PATCH] patch cairo

---
 Makefile.am  | 4 ++--
 configure.ac | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cef4046..ba7051a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,6 +6,6 @@ plugin_LTLIBRARIES = blezz.la
 blezz_la_SOURCES=\
 		 src/blezz.c
 
-blezz_la_CFLAGS= @glib_CFLAGS@ @rofi_CFLAGS@
-blezz_la_LIBADD= @glib_LIBS@ @rofi_LIBS@
+blezz_la_CFLAGS= @glib_CFLAGS@ @rofi_CFLAGS@ @cairo_CFLAGS@
+blezz_la_LIBADD= @glib_LIBS@ @rofi_LIBS@ @cairo_LIBS@
 blezz_la_LDFLAGS= -module -avoid-version
diff --git a/configure.ac b/configure.ac
index a7a589d..ce4e649 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,6 +53,7 @@ dnl PKG_CONFIG based dependencies
 dnl ---------------------------------------------------------------------
 PKG_CHECK_MODULES([glib],     [glib-2.0 >= 2.40 gio-unix-2.0 gmodule-2.0])
 PKG_CHECK_MODULES([rofi],     [rofi])
+PKG_CHECK_MODULES([cairo],    [cairo cairo-xcb])
 
 [rofi_PLUGIN_INSTALL_DIR]="`echo $out/lib/rofi`"
 AC_SUBST([rofi_PLUGIN_INSTALL_DIR])
-- 
2.39.2
+43 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, cairo
, pkg-config
, rofi-unwrapped
}:

stdenv.mkDerivation {
  pname = "rofi-blezz";
  version = "2023-03-27";

  src = fetchFromGitHub {
    owner = "davatorium";
    repo = "rofi-blezz";
    rev = "3a00473471e7c56d2c349ad437937107b7d8e961";
    sha256 = "sha256-hY5UA7nyL6QoOBIZTjEiR0zjZFhkUkRa50r5rVZDnbg=";
  };

  patches = [
    ./0001-Patch-plugindir-to-output.patch
    ./0002-Patch-add-cairo.patch
  ];

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    cairo
    rofi-unwrapped
  ];

  meta = with lib; {
    description = "A plugin for rofi that emulates blezz behaviour";
    homepage = "https://github.com/davatorium/rofi-blezz";
    license = licenses.mit;
    maintainers = with maintainers; [ johnjohnstone ];
    platforms = platforms.linux;
  };
}