12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
20 sha256 = "sha256-EyvljVXhOsdxIYOGTzD+T16nvW7/RNx3DuQ2OdhjXJ4=";
23 hardeningDisable = [ "format" ];
35 # https://github.com/Dushistov/sdcv/pull/104
36 substituteInPlace src/stardict_lib.cpp --replace-fail \
37 "gchar *nextchar = g_utf8_next_char(sWord)" \
38 "gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord))"
45 env.NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__";
48 homepage = "https://dushistov.github.io/sdcv/";
49 description = "Console version of StarDict";
50 maintainers = with maintainers; [ lovek323 ];
51 license = licenses.gpl2;
52 platforms = platforms.unix;