aboutsummaryrefslogtreecommitdiff
path: root/pkgs/sdcv/default.nix
blob: 6a9147db83cc93880c9056c0ee56d7677bc594d3 (plain)
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
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  pkg-config,
  gettext,
  zlib,
  glib,
  pcre,
  readline,
}:
stdenv.mkDerivation rec {
  pname = "sdcv";
  version = "0.5.3";

  src = fetchFromGitHub {
    owner = "Dushistov";
    repo = pname;
    rev = "d054adb37c635ececabc31b147c968a480d1891a";
    hash = "sha256-mJ9LrQ/l0SRmueg+IfGnS0NcNheGdOZ2Gl7KMFiK6is=";
  };

  nativeBuildInputs = [cmake pkg-config gettext];
  buildInputs = [zlib glib pcre readline];
  makeFlags = "sdcv lang";

  meta = with lib; {
    description = "Console version of Stardict program";
    homepage = "https://dushistov.github.io/sdcv/";
    license = licenses.gpl2;
  };
}