about summary refs log tree commit diff
path: root/pkgs/applications/misc/shipments/default.nix
blob: 792f997c5f850a04d292ba2998a15fac45bec55f (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
42
43
44
45
46
47
48
49
50
51
52
{ desktop-file-utils
, fetchFromSourcehut
, gobject-introspection
, gtk3
, lib
, libhandy
, meson
, ninja
, pkg-config
, python3
, stdenv
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
  pname = "shipments";
  version = "0.3.0";

  src = fetchFromSourcehut {
    owner = "~martijnbraam";
    repo = "shipments";
    rev = version;
    hash = "sha256-8wX1s5mPCdMINIQP4m5q5StKqxY6CGBBxIxyQAvU7Pc=";
  };

  nativeBuildInputs = [
    desktop-file-utils
    meson
    ninja
    pkg-config
    wrapGAppsHook
    gobject-introspection
  ];

  buildInputs = [
    gtk3
    libhandy
    (python3.withPackages (ps: with ps; [
      pygobject3
      requests
    ]))
  ];

  meta = with lib; {
    description = "Postal package tracking application";
    mainProgram = "shipments";
    homepage = "https://sr.ht/~martijnbraam/shipments/";
    changelog = "https://git.sr.ht/~martijnbraam/shipments/refs/${version}";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ michaelgrahamevans ];
  };
}