1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ stdenv
, fetchFromGitHub
, pkgconfig
, gtk3
, pantheon
, gnome3
, gtksourceview
, libgee
, cmake
, libqalculate
, gobject-introspection
, wrapGAppsHook }:
stdenv.mkDerivation rec {
name = "nasc-${version}";
version = "0.5.1";
src = fetchFromGitHub {
owner = "parnold-x";
repo = "nasc";
rev = version;
sha256 = "13y5fnm7g3xgdxmdydlgly73nigh8maqbf9d6c9bpyzxkxq1csy5";
};
postPatch = ''
# libqalculatenasc.so is not installed, and nasc fails to start
substituteInPlace libqalculatenasc/CMakeLists.txt --replace SHARED STATIC
'';
nativeBuildInputs = [
cmake
pantheon.vala
gobject-introspection # for setup-hook
pkgconfig
wrapGAppsHook
];
buildInputs = [
pantheon.elementary-icon-theme
gtksourceview
libgee
gnome3.libsoup
pantheon.granite
gtk3
libqalculate
];
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;
};
}
|