bdb851ee2d
elementary OS's ecosystem is curated around Ubuntu's LTS releases. This means the development platform for their curated applications always includes a LTS version of vala (in 18.04 it's 0.40). Because of how vala development works it suspect some of these applications to have serious issues if complied with the latest vala. However in the past year or so, for Pantheon at least, I don't think their applications will have much issues with latest vala, and if there is I don't think they'd be difficult to fix. In this single regard they've become more responsive since their preferred language is vala. As for the curated applications I have less of this confidence in. So I'd have to be accept less applications, but that's something I'm willing to compromise on. And this is easily reversible or could be done on a per-application basis. And nix already makes this trivial.
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ stdenv
|
||
, fetchFromGitHub
|
||
, pkgconfig
|
||
, vala
|
||
, gtk3
|
||
, glib
|
||
, pantheon
|
||
, libsoup
|
||
, gtksourceview
|
||
, libgee
|
||
, cmake
|
||
, libqalculate
|
||
, cln
|
||
, wrapGAppsHook
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
pname = "nasc";
|
||
version = "0.5.4";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "parnold-x";
|
||
repo = pname;
|
||
rev = version;
|
||
sha256 = "036v3dx8yasp19j88lflibqnpfi5d0nk7qkcnr80zn1lvawf4wgn";
|
||
};
|
||
|
||
nativeBuildInputs = [
|
||
cmake
|
||
vala
|
||
pkgconfig
|
||
wrapGAppsHook
|
||
];
|
||
|
||
buildInputs = [
|
||
cln
|
||
libsoup
|
||
gtk3
|
||
glib
|
||
gtksourceview
|
||
libgee
|
||
libqalculate
|
||
pantheon.elementary-icon-theme
|
||
pantheon.granite
|
||
];
|
||
|
||
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;
|
||
};
|
||
}
|