21 stdenv.mkDerivation rec {
25 src = fetchFromGitHub {
29 sha256 = "02b9a59a9fzsb6nn3ycwwbcbv04qfzm6x7csq2addpzx5wak6dd8";
30 fetchSubmodules = true;
34 glib # post_install.py
35 gtk3 # post_install.py
36 intltool # for libqalculate
52 # We add libqalculate's runtime dependencies because nasc has it as a modified subproject.
53 ] ++ libqalculate.buildInputs ++ libqalculate.propagatedBuildInputs;
56 chmod +x meson/post_install.py
57 patchShebangs meson/post_install.py
59 # patch subproject. same code in libqalculate expression
60 substituteInPlace subprojects/libqalculate/libqalculate/Calculator-plot.cc \
61 --replace 'commandline = "gnuplot"' 'commandline = "${gnuplot}/bin/gnuplot"' \
62 --replace '"gnuplot - ' '"${gnuplot}/bin/gnuplot - '
63 substituteInPlace subprojects/libqalculate/libqalculate/meson.build \
64 --replace "link_with: 'libqalculate_lib_static'" "link_with: libqalculate_lib_static"
68 updateScript = nix-update-script { };
72 description = "Do maths like a normal person, designed for elementary OS";
74 It’s an app where you do maths like a normal person. It lets you
75 type whatever you want and smartly figures out what is math and
76 spits out an answer on the right pane. Then you can plug those
77 answers in to future equations and if that answer changes, so does
78 the equations it’s used in.
80 homepage = "https://github.com/parnold-x/nasc";
81 maintainers = teams.pantheon.members;
82 platforms = platforms.linux;
83 license = licenses.gpl3Plus;
84 mainProgram = "com.github.parnold_x.nasc";