2023-11-16 00:09:08 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, fftw
|
2022-05-25 23:35:02 +00:00
|
|
|
, qtbase, qmake, wrapQtAppsHook }:
|
2013-11-12 21:11:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-10 21:21:47 +00:00
|
|
|
pname = "smartdeblur";
|
2022-05-25 23:35:02 +00:00
|
|
|
version = "unstable-2018-10-29";
|
2013-11-12 21:11:47 +00:00
|
|
|
|
2021-11-11 13:46:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Y-Vladimir";
|
|
|
|
repo = "SmartDeblur";
|
2022-05-25 23:35:02 +00:00
|
|
|
rev = "5af573c7048ac49ef68e638f3405d3a571b96a8b";
|
|
|
|
sha256 = "151vdd5ld0clw0vgp0fvp2gp2ybwpx9g43dad9fvbvwkg60izs87";
|
2013-11-12 21:11:47 +00:00
|
|
|
};
|
|
|
|
|
2022-05-25 23:35:02 +00:00
|
|
|
sourceRoot = "${src.name}/src";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake wrapQtAppsHook ];
|
|
|
|
buildInputs = [ qtbase fftw ];
|
2013-11-12 21:11:47 +00:00
|
|
|
|
2022-05-25 23:35:02 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2013-11-12 21:11:47 +00:00
|
|
|
|
2022-05-25 23:35:02 +00:00
|
|
|
install -Dm755 ./SmartDeblur -t $out/bin
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2013-11-12 21:11:47 +00:00
|
|
|
|
2021-11-11 13:46:17 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/Y-Vladimir/SmartDeblur";
|
2013-11-12 21:11:47 +00:00
|
|
|
description = "Tool for restoring blurry and defocused images";
|
2021-11-11 13:46:17 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.linux;
|
2013-11-12 21:11:47 +00:00
|
|
|
};
|
|
|
|
}
|