@@ -0,0 +1,30 @@
1+{ lib, stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "quich";
5+ version = "3.1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "Usbac";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "1n9c01q2v6g9wnmxp248yclhp8cxclnj0yyn1qrvjsn6srcpr22c";
12+ };
13+
14+ doCheck = true;
15+
16+ makeFlags = [ "DESTDIR=" "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
17+
18+ meta = with lib; {
19+ description = "The advanced terminal calculator";
20+ longDescription = ''
21+ Quich is a compact, fast, powerful and useful calculator for your terminal
22+ with numerous features, supporting Windows and Linux Systems,
23+ written in ANSI C.
24+ '';
25+ homepage = "https://github.com/Usbac/quich";
26+ license = licenses.mit;
27+ maintainers = [ maintainers.xdhampus ];
28+ platforms = platforms.all;
29+ };
30+}