aboutsummaryrefslogtreecommitdiff
path: root/pkgs/sdcv/default.nix
blob: 7e9527f692715b00d81d50256f4b80d3d3423f42 (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
{ 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;
  };
}