nixpkgs/pkgs/applications/science/math/qalculate-gtk/default.nix
R. RyanTM ef405c5b67 qalculate-gtk: 2.8.2 -> 2.9.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/qalculate-gtk/versions
2019-02-15 11:39:04 -08:00

31 lines
874 B
Nix

{ stdenv, fetchFromGitHub, intltool, autoreconfHook, pkgconfig, libqalculate, gtk3, wrapGAppsHook }:
stdenv.mkDerivation rec {
name = "qalculate-gtk-${version}";
version = "2.9.0";
src = fetchFromGitHub {
owner = "qalculate";
repo = "qalculate-gtk";
rev = "v${version}";
sha256 = "0c5s7mz8xwwmzc22yai8vqiww7paafkyi7khp8a2yws78m2nirdx";
};
patchPhase = ''
substituteInPlace src/main.cc --replace 'getPackageDataDir().c_str()' \"$out/share\"
'';
hardeningDisable = [ "format" ];
nativeBuildInputs = [ intltool pkgconfig autoreconfHook wrapGAppsHook ];
buildInputs = [ libqalculate gtk3 ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "The ultimate desktop calculator";
homepage = http://qalculate.github.io;
maintainers = with maintainers; [ gebner ];
platforms = platforms.all;
};
}