about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/markets/default.nix
blob: ccf56da05a24b5be40f838f9388045b0749428c4 (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
{ lib, stdenv, fetchFromGitHub
, desktop-file-utils, glib, gtk3, meson, ninja, pkg-config, python3, vala
, wrapGAppsHook
, glib-networking, gobject-introspection, json-glib, libgee, libhandy, libsoup
}:

stdenv.mkDerivation rec {
  pname = "markets";
  version = "0.5.4";

  src = fetchFromGitHub {
    owner = "bitstower";
    repo = "markets";
    rev = version;
    sha256 = "sha256-/g/r/1i69PmPND40zIID3Nun0I4ZFT1EFoNf1qprBjI=";
  };

  nativeBuildInputs = [
    desktop-file-utils glib gtk3 meson ninja pkg-config python3 vala
    wrapGAppsHook
  ];
  buildInputs = [
    glib glib-networking gobject-introspection gtk3 json-glib libgee libhandy
    libsoup
  ];

  postPatch = ''
    patchShebangs build-aux/meson/postinstall.py
  '';

  postInstall = ''
    ln -s bitstower-markets $out/bin/markets
  '';

  meta = with lib; {
    homepage = "https://github.com/bitstower/markets";
    description = "Stock, currency and cryptocurrency tracker";
    maintainers = with maintainers; [ qyliss ];
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
  };
}