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