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