2018-03-10 11:21:36 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, fetchFromGitHub
|
2018-07-18 13:55:23 +01:00
|
|
|
|
, fetchpatch
|
2018-03-10 11:21:36 +00:00
|
|
|
|
, pkgconfig
|
|
|
|
|
, gtk3
|
|
|
|
|
, granite
|
|
|
|
|
, gnome3
|
|
|
|
|
, cmake
|
2018-11-02 20:01:05 +00:00
|
|
|
|
, vala_0_40
|
2018-03-10 11:21:36 +00:00
|
|
|
|
, libqalculate
|
2018-07-18 13:55:23 +01:00
|
|
|
|
, gobjectIntrospection
|
2018-03-10 11:21:36 +00:00
|
|
|
|
, wrapGAppsHook }:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
name = "nasc-${version}";
|
2018-11-10 13:15:27 +00:00
|
|
|
|
version = "0.5.1";
|
2018-03-10 11:21:36 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "parnold-x";
|
|
|
|
|
repo = "nasc";
|
|
|
|
|
rev = version;
|
2018-11-10 13:15:27 +00:00
|
|
|
|
sha256 = "13y5fnm7g3xgdxmdydlgly73nigh8maqbf9d6c9bpyzxkxq1csy5";
|
2018-03-10 11:21:36 +00:00
|
|
|
|
};
|
|
|
|
|
|
2018-11-10 13:15:27 +00:00
|
|
|
|
postPatch = ''
|
|
|
|
|
# libqalculatenasc.so is not installed, and nasc fails to start
|
|
|
|
|
substituteInPlace libqalculatenasc/CMakeLists.txt --replace SHARED STATIC
|
|
|
|
|
'';
|
|
|
|
|
|
2018-03-10 11:21:36 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
pkgconfig
|
|
|
|
|
wrapGAppsHook
|
2018-11-02 20:01:05 +00:00
|
|
|
|
vala_0_40 # should be `elementary.vala` when elementary attribute set is merged
|
2018-03-10 11:21:36 +00:00
|
|
|
|
cmake
|
2018-07-18 13:55:23 +01:00
|
|
|
|
gobjectIntrospection # for setup-hook
|
2018-03-10 11:21:36 +00:00
|
|
|
|
];
|
2018-11-10 13:15:27 +00:00
|
|
|
|
|
2018-03-10 11:21:36 +00:00
|
|
|
|
buildInputs = [
|
2018-11-02 20:01:05 +00:00
|
|
|
|
gnome3.defaultIconTheme # should be `elementary.defaultIconTheme`when elementary attribute set is merged
|
|
|
|
|
gnome3.gtksourceview
|
2018-03-10 11:21:36 +00:00
|
|
|
|
gnome3.libgee
|
|
|
|
|
gnome3.libsoup
|
2018-11-02 20:01:05 +00:00
|
|
|
|
granite
|
|
|
|
|
gtk3
|
|
|
|
|
libqalculate
|
2018-03-10 11:21:36 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
description = "Do maths like a normal person";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
It’s an app where you do maths like a normal person. It lets you
|
|
|
|
|
type whatever you want and smartly figures out what is math and
|
|
|
|
|
spits out an answer on the right pane. Then you can plug those
|
|
|
|
|
answers in to future equations and if that answer changes, so does
|
|
|
|
|
the equations it’s used in.
|
|
|
|
|
'';
|
|
|
|
|
homepage = https://github.com/parnold-x/nasc;
|
|
|
|
|
maintainers = with maintainers; [ samdroid-apps ];
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
|
};
|
|
|
|
|
}
|