lol
1{ lib
2, stdenv
3, byacc
4, fetchFromSourcehut
5, gitUpdater
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "pc";
10 version = "0.4";
11
12 src = fetchFromSourcehut {
13 owner = "~ft";
14 repo = "pc";
15 rev = finalAttrs.version;
16 hash = "sha256-fzEDI20o5ROY9n/QRzCW66iCKYaBbI++Taur6EoA0wA=";
17 };
18
19 nativeBuildInputs = [ byacc ];
20 makeFlags = [ "PREFIX=$(out)" ];
21
22 strictDeps = true;
23
24 enableParallelBuilding = true;
25
26 passthru.updateScript = gitUpdater { };
27
28 meta = {
29 description = "Programmer's calculator";
30 homepage = "https://git.sr.ht/~ft/pc";
31 license = with lib.licenses; [ mit ];
32 maintainers = with lib.maintainers; [ moody ];
33 platforms = lib.platforms.unix;
34 mainProgram = "pc";
35 };
36})