2016-06-19 17:33:45 +02:00
|
|
|
{ stdenv, fetchurl, intltool, autoreconfHook, pkgconfig, libqalculate, gtk3, wrapGAppsHook }:
|
2016-07-09 13:11:02 +02:00
|
|
|
|
2015-08-31 19:20:03 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qalculate-gtk-${version}";
|
2017-10-10 13:28:38 +02:00
|
|
|
version = "2.1.0";
|
2015-08-31 19:20:03 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-06-19 17:33:45 +02:00
|
|
|
url = "https://github.com/Qalculate/qalculate-gtk/archive/v${version}.tar.gz";
|
2017-10-10 13:28:38 +02:00
|
|
|
sha256 = "14q89l6laa7v7d9qx7v71a0r2m65saxqgr9r871fasm400a9x8pw";
|
2015-08-31 19:20:03 +02:00
|
|
|
};
|
|
|
|
|
2017-07-31 17:29:18 +02:00
|
|
|
patchPhase = ''
|
2017-08-29 10:30:10 +02:00
|
|
|
substituteInPlace src/main.cc --replace 'getPackageDataDir().c_str()' \"$out/share\"
|
2017-07-31 17:29:18 +02:00
|
|
|
'';
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 17:16:52 +01:00
|
|
|
|
2016-06-19 17:33:45 +02:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig autoreconfHook wrapGAppsHook ];
|
|
|
|
buildInputs = [ libqalculate gtk3 ];
|
2017-08-29 10:30:10 +02:00
|
|
|
enableParallelBuilding = true;
|
2015-08-31 19:20:03 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The ultimate desktop calculator";
|
2016-06-19 17:33:45 +02:00
|
|
|
homepage = http://qalculate.github.io;
|
2015-08-31 19:20:03 +02:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|