2020-03-30 00:18:56 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkgconfig
|
|
|
|
, rofi-unwrapped
|
|
|
|
, libqalculate
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-calc";
|
2020-08-29 07:44:34 +01:00
|
|
|
version = "1.8";
|
2020-03-30 00:18:56 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svenstaro";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-08-29 07:44:34 +01:00
|
|
|
sha256 = "0vwb9c3xvd2cms6cw8j8parg7w4bsxvvrd1wgggr8sz2p8rrvy5p";
|
2020-03-30 00:18:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkgconfig
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
rofi-unwrapped
|
|
|
|
libqalculate
|
|
|
|
glib
|
|
|
|
cairo
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./0001-Patch-plugindir-to-output.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed "s|qalc_binary = \"qalc\"|qalc_binary = \"${libqalculate}/bin/qalc\"|" -i src/calc.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Do live calculations in rofi!";
|
|
|
|
homepage = "https://github.com/svenstaro/rofi-calc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ luc65r albakham ];
|
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|