lsd2dsl: fix build (#373762)

authored by Aleksana and committed by GitHub 0526068e fcc12236

+17 -9
+17 -9
pkgs/by-name/ls/lsd2dsl/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeDesktopItem, 6 copyDesktopItems, 7 cmake, ··· 15 qt6, 16 }: 17 18 - stdenv.mkDerivation rec { 19 pname = "lsd2dsl"; 20 version = "0.6.0"; 21 22 src = fetchFromGitHub { 23 owner = "nongeneric"; 24 repo = "lsd2dsl"; 25 - rev = "v${version}"; 26 hash = "sha256-0UsxDNpuWpBrfjh4q3JhZnOyXhHatSa3t/cApiG2JzM="; 27 }; 28 29 postPatch = '' 30 substituteInPlace CMakeLists.txt --replace "-Werror" "" 31 ''; ··· 48 qt6.qtwebengine 49 ]; 50 51 - env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion"; 52 53 desktopItems = lib.singleton (makeDesktopItem { 54 name = "lsd2dsl"; 55 exec = "lsd2dsl-qtgui"; 56 desktopName = "lsd2dsl"; 57 genericName = "lsd2dsl"; 58 - comment = meta.description; 59 categories = [ 60 "Dictionary" 61 "FileTools" ··· 67 install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin 68 ''; 69 70 - meta = with lib; { 71 homepage = "https://rcebits.com/lsd2dsl/"; 72 description = "Lingvo dictionaries decompiler"; 73 longDescription = '' 74 A decompiler for ABBYY Lingvo’s proprietary dictionaries. 75 ''; 76 - license = licenses.mit; 77 - maintainers = with maintainers; [ sikmir ]; 78 - platforms = platforms.unix; 79 }; 80 - }
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + fetchpatch, 6 makeDesktopItem, 7 copyDesktopItems, 8 cmake, ··· 16 qt6, 17 }: 18 19 + stdenv.mkDerivation (finalAttrs: { 20 pname = "lsd2dsl"; 21 version = "0.6.0"; 22 23 src = fetchFromGitHub { 24 owner = "nongeneric"; 25 repo = "lsd2dsl"; 26 + tag = "v${finalAttrs.version}"; 27 hash = "sha256-0UsxDNpuWpBrfjh4q3JhZnOyXhHatSa3t/cApiG2JzM="; 28 }; 29 30 + patches = [ 31 + (fetchpatch { 32 + url = "https://github.com/nongeneric/lsd2dsl/commit/bbda5be1b76a4a44804483d00c07d79783eceb6b.patch"; 33 + hash = "sha256-7is83D1cMBArXVLe5TP7D7lUcwnTMeXjkJ+cbaH5JQk="; 34 + }) 35 + ]; 36 + 37 postPatch = '' 38 substituteInPlace CMakeLists.txt --replace "-Werror" "" 39 ''; ··· 56 qt6.qtwebengine 57 ]; 58 59 + env.NIX_CFLAGS_COMPILE = "-Wno-int-conversion"; 60 61 desktopItems = lib.singleton (makeDesktopItem { 62 name = "lsd2dsl"; 63 exec = "lsd2dsl-qtgui"; 64 desktopName = "lsd2dsl"; 65 genericName = "lsd2dsl"; 66 + comment = finalAttrs.meta.description; 67 categories = [ 68 "Dictionary" 69 "FileTools" ··· 75 install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin 76 ''; 77 78 + meta = { 79 homepage = "https://rcebits.com/lsd2dsl/"; 80 description = "Lingvo dictionaries decompiler"; 81 longDescription = '' 82 A decompiler for ABBYY Lingvo’s proprietary dictionaries. 83 ''; 84 + license = lib.licenses.mit; 85 + maintainers = with lib.maintainers; [ sikmir ]; 86 + platforms = lib.platforms.unix; 87 }; 88 + })