nixpkgs/pkgs/applications/science/math/wxmaxima/default.nix
Orivej Desh 77cc63950a wxmaxima: build with cmake
Fixes reported version number: see
https://github.com/NixOS/nixpkgs/pull/31657#issuecomment-354414642

"make check" did not run any tests with autotools, and is not defined with
cmake. ("make test" is not defined too.)
2017-12-29 21:00:03 +00:00

33 lines
843 B
Nix

{ stdenv, fetchFromGitHub
, wrapGAppsHook, cmake, gettext
, maxima, wxGTK, gnome3 }:
stdenv.mkDerivation rec {
name = "wxmaxima-${version}";
version = "17.10.1";
src = fetchFromGitHub {
owner = "andrejv";
repo = "wxmaxima";
rev = "Version-${version}";
sha256 = "088h8dlc9chkppwl4ck9i0fgf2d1dcpi5kq8qbpr5w75vhwsb6qm";
};
buildInputs = [ wxGTK maxima gnome3.defaultIconTheme ];
nativeBuildInputs = [ wrapGAppsHook cmake gettext ];
preConfigure = ''
gappsWrapperArgs+=(--prefix PATH ":" ${maxima}/bin)
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Cross platform GUI for the computer algebra system Maxima";
license = licenses.gpl2;
homepage = http://wxmaxima.sourceforge.net;
platforms = platforms.linux;
maintainers = [ maintainers.peti ];
};
}