2018-07-05 03:33:13 -07:00
|
|
|
{ stdenv, fetchFromGitHub, intltool, autoreconfHook, pkgconfig, libqalculate, gtk3, wrapGAppsHook }:
|
2016-07-09 04:11:02 -07:00
|
|
|
|
2015-08-31 10:20:03 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-03-22 22:56:47 -07:00
|
|
|
pname = "qalculate-gtk";
|
2019-12-10 08:34:29 -08:00
|
|
|
version = "3.6.0";
|
2015-08-31 10:20:03 -07:00
|
|
|
|
2018-07-05 03:33:13 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qalculate";
|
|
|
|
repo = "qalculate-gtk";
|
|
|
|
rev = "v${version}";
|
2019-12-10 08:34:29 -08:00
|
|
|
sha256 = "1b20sjkv853lqii0dpqg10rgcka3cs57zriihyd463n7dq3hsim5";
|
2015-08-31 10:20:03 -07:00
|
|
|
};
|
|
|
|
|
2017-07-31 08:29:18 -07:00
|
|
|
patchPhase = ''
|
2017-08-29 01:30:10 -07:00
|
|
|
substituteInPlace src/main.cc --replace 'getPackageDataDir().c_str()' \"$out/share\"
|
2017-07-31 08:29:18 -07:00
|
|
|
'';
|
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 08:16:52 -08:00
|
|
|
|
2016-06-19 08:33:45 -07:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig autoreconfHook wrapGAppsHook ];
|
|
|
|
buildInputs = [ libqalculate gtk3 ];
|
2017-08-29 01:30:10 -07:00
|
|
|
enableParallelBuilding = true;
|
2015-08-31 10:20:03 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The ultimate desktop calculator";
|
2016-06-19 08:33:45 -07:00
|
|
|
homepage = http://qalculate.github.io;
|
2015-08-31 10:20:03 -07:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|