smartdeblur: unstable-2013-01-09 -> unstable-2018-10-29

qt4 -> qt5
This commit is contained in:
ajs124 2022-05-26 01:35:02 +02:00
parent 3518b4ac5a
commit 1588db305a
2 changed files with 17 additions and 12 deletions

View file

@ -1,25 +1,30 @@
{ lib, stdenv, fetchFromGitHub, cmake, qt4, fftw }:
{ stdenv, lib, fetchFromGitHub, cmake, fftw
, qtbase, qmake, wrapQtAppsHook }:
stdenv.mkDerivation rec {
pname = "smartdeblur";
version = "unstable-2013-01-09";
version = "unstable-2018-10-29";
src = fetchFromGitHub {
owner = "Y-Vladimir";
repo = "SmartDeblur";
rev = "9895036d26cbb823a9ade28cdcb26fd0ac37258e";
sha256 = "sha256-+EbqEpOG1fj2OKmlz8NRF/CGfT2OYGwY5/lwJHCHaMw=";
rev = "5af573c7048ac49ef68e638f3405d3a571b96a8b";
sha256 = "151vdd5ld0clw0vgp0fvp2gp2ybwpx9g43dad9fvbvwkg60izs87";
};
preConfigure = ''
cd src
sourceRoot = "${src.name}/src";
nativeBuildInputs = [ qmake wrapQtAppsHook ];
buildInputs = [ qtbase fftw ];
installPhase = ''
runHook preInstall
install -Dm755 ./SmartDeblur -t $out/bin
runHook postInstall
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ qt4 fftw ];
cmakeFlags = [ "-DUSE_SYSTEM_FFTW=ON" ];
meta = with lib; {
homepage = "https://github.com/Y-Vladimir/SmartDeblur";
description = "Tool for restoring blurry and defocused images";

View file

@ -30281,7 +30281,7 @@ with pkgs;
jre = openjdk11;
};
smartdeblur = callPackage ../applications/graphics/smartdeblur { };
smartdeblur = libsForQt5.callPackage ../applications/graphics/smartdeblur { };
snapper = callPackage ../tools/misc/snapper { };
snapper-gui = callPackage ../applications/misc/snapper-gui { };