3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/math/qalculate-gtk/default.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

2018-07-05 11:33:13 +01:00
{ stdenv, fetchFromGitHub, intltool, autoreconfHook, pkgconfig, libqalculate, gtk3, wrapGAppsHook }:
2015-08-31 18:20:03 +01:00
stdenv.mkDerivation rec {
pname = "qalculate-gtk";
2020-08-22 16:10:03 +01:00
version = "3.12.1";
2015-08-31 18:20:03 +01:00
2018-07-05 11:33:13 +01:00
src = fetchFromGitHub {
owner = "qalculate";
repo = "qalculate-gtk";
rev = "v${version}";
2020-08-22 16:10:03 +01:00
sha256 = "0ylsxj9rn3dc1grn9w6jisci3ak0hxgbwzqp54azs3aj5cmvkfgg";
2015-08-31 18:20:03 +01:00
};
patchPhase = ''
# The gnome-search-provider2.c file generated by gdbus-codegen depends
# on gio-unix-2.0, which is a Requires.private of gtk+-3.0,
# and private dependencies are dropped in our default patched pkg-config.
2020-08-22 16:10:03 +01:00
# https://github.com/Qalculate/qalculate-gtk/pull/178
# https://github.com/NixOS/nixpkgs/issues/292
2020-08-22 16:10:03 +01:00
substituteInPlace configure.ac --replace 'libxml-2.0' 'libxml-2.0 gio-unix-2.0'
2020-08-22 18:06:43 +01:00
# https://github.com/Qalculate/qalculate-gtk/pull/179
echo searchprovider.o: gnome-search-provider2.c >>src/Makefile.am
'';
hardeningDisable = [ "format" ];
nativeBuildInputs = [ intltool pkgconfig autoreconfHook wrapGAppsHook ];
buildInputs = [ libqalculate gtk3 ];
2017-08-29 09:30:10 +01:00
enableParallelBuilding = true;
2015-08-31 18:20:03 +01:00
meta = with stdenv.lib; {
description = "The ultimate desktop calculator";
2020-03-08 00:14:22 +00:00
homepage = "http://qalculate.github.io";
2015-08-31 18:20:03 +01:00
maintainers = with maintainers; [ gebner ];
2020-06-26 23:37:44 +01:00
license = licenses.gpl2Plus;
2015-08-31 18:20:03 +01:00
platforms = platforms.all;
};
}