lsd2dsl: 0.5.4 → 0.6.0

This commit is contained in:
Nikolay Korotkiy 2024-02-23 01:42:36 +04:00
parent 52eace11d2
commit dfc25f4e04
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5
1 changed files with 23 additions and 6 deletions

View File

@ -1,23 +1,40 @@
{ lib, stdenv, fetchFromGitHub
, makeDesktopItem, copyDesktopItems, cmake
, boost, libvorbis, libsndfile, minizip, gtest, qt5 }:
, boost, cups, fmt, libvorbis, libsndfile, minizip, gtest, qt6 }:
stdenv.mkDerivation rec {
pname = "lsd2dsl";
version = "0.5.4";
version = "0.6.0";
src = fetchFromGitHub {
owner = "nongeneric";
repo = "lsd2dsl";
rev = "v${version}";
sha256 = "sha256-PLgfsVVrNBTxI4J0ukEOFRoBkbmB55/sLNn5KyiHeAc=";
hash = "sha256-0UsxDNpuWpBrfjh4q3JhZnOyXhHatSa3t/cApiG2JzM=";
};
nativeBuildInputs = [ cmake qt5.wrapQtAppsHook ] ++ lib.optional stdenv.isLinux copyDesktopItems;
postPatch = ''
substituteInPlace CMakeLists.txt --replace "-Werror" ""
'';
buildInputs = [ boost libvorbis libsndfile minizip gtest qt5.qtwebkit ];
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook
] ++ lib.optional stdenv.isLinux copyDesktopItems;
env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces";
buildInputs = [
boost
cups
fmt
libvorbis
libsndfile
minizip
gtest
qt6.qt5compat
qt6.qtwebengine
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion";
desktopItems = lib.singleton (makeDesktopItem {
name = "lsd2dsl";