about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/mbidled/default.nix
blob: 9e07d1afbe2138796c23b8983193ec03e70708b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, libev
, openssl
}:
stdenv.mkDerivation {
  pname = "mbidled";
  version = "unstable-2022-10-30";

  src = fetchFromGitHub {
    owner = "zsugabubus";
    repo = "mbidled";
    rev = "b06152f015a470876b042e538804ebb1ac247c09";
    sha256 = "sha256-eHm10onJ7v6fhvJiGXZhuN3c9cj+NoVIW2XQb2fdmuA=";
  };

  preConfigure = ''
    export LIBRARY_PATH=${libev}/lib
  '';

  nativeBuildInputs = [
    meson ninja
  ];

  buildInputs = [
    libev openssl
  ];

  meta = with lib; {
    description = "run command on mailbox change";
    homepage = "https://github.com/zsugabubus/mbidled";
    license = licenses.unlicense;
    maintainers = with maintainers; [ laalsaas ];
    platforms = platforms.linux;
    mainProgram = "mbidled";
  };
}