aboutsummaryrefslogtreecommitdiff
path: root/pkgs/sdcv/default.nix
blob: 88172704ff9740ba9cba11ef8239a66b3a9779d8 (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 (attrs: {
  pname = "sdcv";
  version = "0.5.5";

  src = fetchFromGitHub {
    owner = "Dushistov";
    repo = attrs.pname;
    rev = "v${attrs.version}";
    hash = "sha256-EyvljVXhOsdxIYOGTzD+T16nvW7/RNx3DuQ2OdhjXJ4=";
  };

  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;
  };
})