mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{ stdenv
|
||
, fetchFromGitHub
|
||
, fetchpatch
|
||
, pkgconfig
|
||
, gtk3
|
||
, granite
|
||
, gnome3
|
||
, cmake
|
||
, ninja
|
||
, vala_0_40
|
||
, libqalculate
|
||
, gobjectIntrospection
|
||
, wrapGAppsHook }:
|
||
|
||
stdenv.mkDerivation rec {
|
||
name = "nasc-${version}";
|
||
version = "0.5.0";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "parnold-x";
|
||
repo = "nasc";
|
||
rev = version;
|
||
sha256 = "1rrp3djsv7lrgsqjn7x50msv0c5ffhz90lj1v11di0kp05m6q9j9";
|
||
};
|
||
|
||
nativeBuildInputs = [
|
||
pkgconfig
|
||
wrapGAppsHook
|
||
vala_0_40 # should be `elementary.vala` when elementary attribute set is merged
|
||
cmake
|
||
ninja
|
||
gobjectIntrospection # for setup-hook
|
||
];
|
||
|
||
buildInputs = [
|
||
gnome3.defaultIconTheme # should be `elementary.defaultIconTheme`when elementary attribute set is merged
|
||
gnome3.gtksourceview
|
||
gnome3.libgee
|
||
gnome3.libsoup
|
||
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;
|
||
};
|
||
}
|