2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, glib, gettext, readline }:
|
2013-06-02 03:21:30 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sdcv";
|
2020-08-29 10:21:16 +02:00
|
|
|
version = "0.5.3";
|
2017-11-10 19:04:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Dushistov";
|
|
|
|
repo = "sdcv";
|
|
|
|
rev = "v${version}";
|
2020-08-29 10:21:16 +02:00
|
|
|
sha256 = "144qpl9b8r2php0zhi9b7vg6flpvdgjy6yfaipydwwhxi4wy9600";
|
2013-06-02 03:21:30 +02:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-11-10 19:04:00 +01:00
|
|
|
buildInputs = [ glib gettext readline ];
|
2016-02-12 19:27:08 +01:00
|
|
|
|
2017-11-10 19:04:00 +01:00
|
|
|
preInstall = ''
|
2017-11-18 22:45:31 +01:00
|
|
|
mkdir locale
|
2013-06-02 03:21:30 +02:00
|
|
|
'';
|
|
|
|
|
2018-03-14 20:15:06 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__";
|
2013-06-02 03:21:30 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://dushistov.github.io/sdcv/";
|
2017-11-10 19:04:00 +01:00
|
|
|
description = "Console version of StarDict";
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
license = licenses.gpl2;
|
2017-11-18 22:45:31 +01:00
|
|
|
platforms = platforms.unix;
|
2017-11-10 19:04:00 +01:00
|
|
|
};
|
|
|
|
}
|