lsd2dsl: fix build (#373762)

This commit is contained in:
Aleksana
2025-08-01 22:18:54 +08:00
committed by GitHub
+17 -9
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
makeDesktopItem,
copyDesktopItems,
cmake,
@@ -15,17 +16,24 @@
qt6,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "lsd2dsl";
version = "0.6.0";
src = fetchFromGitHub {
owner = "nongeneric";
repo = "lsd2dsl";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-0UsxDNpuWpBrfjh4q3JhZnOyXhHatSa3t/cApiG2JzM=";
};
patches = [
(fetchpatch {
url = "https://github.com/nongeneric/lsd2dsl/commit/bbda5be1b76a4a44804483d00c07d79783eceb6b.patch";
hash = "sha256-7is83D1cMBArXVLe5TP7D7lUcwnTMeXjkJ+cbaH5JQk=";
})
];
postPatch = ''
substituteInPlace CMakeLists.txt --replace "-Werror" ""
'';
@@ -48,14 +56,14 @@ stdenv.mkDerivation rec {
qt6.qtwebengine
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion";
env.NIX_CFLAGS_COMPILE = "-Wno-int-conversion";
desktopItems = lib.singleton (makeDesktopItem {
name = "lsd2dsl";
exec = "lsd2dsl-qtgui";
desktopName = "lsd2dsl";
genericName = "lsd2dsl";
comment = meta.description;
comment = finalAttrs.meta.description;
categories = [
"Dictionary"
"FileTools"
@@ -67,14 +75,14 @@ stdenv.mkDerivation rec {
install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin
'';
meta = with lib; {
meta = {
homepage = "https://rcebits.com/lsd2dsl/";
description = "Lingvo dictionaries decompiler";
longDescription = ''
A decompiler for ABBYY Lingvos proprietary dictionaries.
'';
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sikmir ];
platforms = lib.platforms.unix;
};
}
})