rix101/pkgs/sdcv/default.nix

62 lines
1.1 KiB
Nix
Raw Normal View History

{ config
, lib
, dream2nix
2024-08-02 09:29:34 +02:00
, ...
}: {
imports = [
dream2nix.modules.dream2nix.mkDerivation
];
deps = { nixpkgs, ... }: {
inherit (nixpkgs)
# Fetchers
fetchFromGitHub
# Build inputs
cmake
pkg-config
iconv
pcre
readline
glib
zlib
;
};
2024-08-02 09:29:34 +02:00
name = "sdcv";
2024-08-02 09:29:34 +02:00
version = "0.5.5";
mkDerivation = {
src = config.deps.fetchFromGitHub {
owner = "Dushistov";
repo = config.name;
rev = "v${config.version}";
hash = "sha256-EyvljVXhOsdxIYOGTzD+T16nvW7/RNx3DuQ2OdhjXJ4=";
};
2024-08-02 09:29:34 +02:00
nativeBuildInputs = with config.deps; [
pkg-config
cmake
iconv
];
2024-08-02 09:29:34 +02:00
buildInputs = with config.deps; [
pcre
readline
glib
zlib
];
2024-08-02 09:29:34 +02:00
cmakeFlags = [
# FIXME: <https://github.com/Dushistov/sdcv/blob/49c8094b53b7dd90efeabeaf276752a650a0f931/CMakeLists.txt#L58> does not exit
"-DENABLE_NLS=OFF"
];
2024-08-02 09:29:34 +02:00
meta = with lib; {
description = "Console version of StarDict";
homepage = "https://github.com/Dushistov/sdcv";
license = licenses.gpl2;
maintainers = with maintainers; [ reo101 ];
};
2024-08-02 09:29:34 +02:00
};
}