summary refs log tree commit diff
path: root/pkgs/applications/misc/bfcal/default.nix
blob: 9b77d1ebe3c193de5f4c73db6e2e50ed5494e4de (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
41
{ stdenv
, lib
, fetchFromSourcehut
, meson
, ninja
, pkg-config
, wrapQtAppsHook
, qtbase
}:

stdenv.mkDerivation rec {
  pname = "bfcal";
  version = "1.0";

  src = fetchFromSourcehut {
    owner = "~bitfehler";
    repo = "bfcal";
    rev = "v${version}";
    sha256 = "sha256-2z5ICVEZ55omwcoVWpac/HPwyKF9jDCYO78S9p21VMU=";
  };

  nativeBuildInputs = [
    meson ninja pkg-config wrapQtAppsHook
  ];

  buildInputs = [
    qtbase
  ];

  postInstall = ''
    mkdir -p $out/bin
    install bfcal $out/bin
  '';

  meta = with lib; {
    description = "Quickly display a calendar";
    homepage = "https://git.sr.ht/~bitfehler/bfcal";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ laalsaas ];
  };
}