nixpkgs/pkgs/by-name/ls/lsd2dsl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.4 KiB
Nix
Raw Normal View History

2024-02-22 21:28:55 +00:00
{ lib, stdenv, fetchFromGitHub
2021-08-16 20:57:05 +00:00
, makeDesktopItem, copyDesktopItems, cmake
2024-02-22 21:42:36 +00:00
, boost, cups, fmt, libvorbis, libsndfile, minizip, gtest, qt6 }:
2019-09-26 07:49:59 +00:00
2024-02-22 21:28:55 +00:00
stdenv.mkDerivation rec {
2019-09-26 07:49:59 +00:00
pname = "lsd2dsl";
2024-02-22 21:42:36 +00:00
version = "0.6.0";
2019-09-26 07:49:59 +00:00
src = fetchFromGitHub {
owner = "nongeneric";
2024-02-22 21:28:55 +00:00
repo = "lsd2dsl";
2019-09-26 07:49:59 +00:00
rev = "v${version}";
2024-02-22 21:42:36 +00:00
hash = "sha256-0UsxDNpuWpBrfjh4q3JhZnOyXhHatSa3t/cApiG2JzM=";
2019-09-26 07:49:59 +00:00
};
2024-02-22 21:42:36 +00:00
postPatch = ''
substituteInPlace CMakeLists.txt --replace "-Werror" ""
'';
2019-09-26 07:49:59 +00:00
2024-02-22 21:42:36 +00:00
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook
] ++ lib.optional stdenv.isLinux copyDesktopItems;
buildInputs = [
boost
cups
fmt
libvorbis
libsndfile
minizip
gtest
qt6.qt5compat
qt6.qtwebengine
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion";
2019-09-26 07:49:59 +00:00
2021-08-16 20:57:05 +00:00
desktopItems = lib.singleton (makeDesktopItem {
name = "lsd2dsl";
exec = "lsd2dsl-qtgui";
desktopName = "lsd2dsl";
genericName = "lsd2dsl";
comment = meta.description;
categories = [ "Dictionary" "FileTools" "Qt" ];
2021-08-16 20:57:05 +00:00
});
2019-09-26 07:49:59 +00:00
installPhase = ''
2020-08-29 13:57:37 +00:00
install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin
2019-09-26 07:49:59 +00:00
'';
meta = with lib; {
homepage = "https://rcebits.com/lsd2dsl/";
description = "Lingvo dictionaries decompiler";
longDescription = ''
A decompiler for ABBYY Lingvos proprietary dictionaries.
'';
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
2021-08-16 20:57:05 +00:00
platforms = platforms.unix;
2019-09-26 07:49:59 +00:00
};
}