lol
1{ lib
2, rustPlatform
3, fetchFromGitHub
4, xorg
5, installShellFiles
6, pandoc
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "gobble";
11 version = "1.3";
12
13 src = fetchFromGitHub {
14 owner = "EmperorPenguin18";
15 repo = pname;
16 rev = version;
17 hash = "sha256-g4154Axvjp9jbE0lvMeNGM+v2UxkAsZqt9kPv5bhVK8=";
18 };
19
20 cargoHash = "sha256-5xsMLOYTKQc1bHHQsk9L4rHMVNBFOzIMxD+1qaMaNbQ=";
21
22 buildInputs = [ xorg.libxcb ];
23 nativeBuildInputs = [ pandoc installShellFiles ];
24
25 postInstall = ''
26 pandoc gobble.1.md -s -t man -o gobble.1
27 installManPage gobble.1
28 '';
29
30 meta = {
31 description = "gobbles your terminal";
32 homepage = "https://github.com/EmperorPenguin18/gobble";
33 license = lib.licenses.gpl3Only;
34 maintainers = with lib.maintainers; [ vuimuich ];
35 platforms = lib.platforms.linux;
36 mainProgram = "gobble";
37 };
38}