2017-11-10 18:04:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, glib, gettext, readline }:
|
2013-06-02 01:21:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-10 18:04:00 +00:00
|
|
|
name = "sdcv-${version}";
|
|
|
|
version = "0.5.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Dushistov";
|
|
|
|
repo = "sdcv";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1b67s4nj0s5fh3cjk7858qvhiisc557xx72xwzrb8hq6ijpwx5k0";
|
2013-06-02 01:21:30 +00:00
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2017-11-10 18:04:00 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ glib gettext readline ];
|
2016-02-12 18:27:08 +00:00
|
|
|
|
2017-11-10 18:04:00 +00:00
|
|
|
preInstall = ''
|
2017-11-18 21:45:31 +00:00
|
|
|
mkdir locale
|
2013-06-02 01:21:30 +00:00
|
|
|
'';
|
|
|
|
|
2013-07-13 21:30:18 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__"
|
|
|
|
+ stdenv.lib.optionalString stdenv.isDarwin " -lintl";
|
2013-06-02 01:21:30 +00:00
|
|
|
|
2017-11-10 18:04:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://dushistov.github.io/sdcv/;
|
|
|
|
description = "Console version of StarDict";
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
license = licenses.gpl2;
|
2017-11-18 21:45:31 +00:00
|
|
|
platforms = platforms.unix;
|
2017-11-10 18:04:00 +00:00
|
|
|
};
|
|
|
|
}
|