diff options
author | ajs124 <git@ajs124.de> | 2022-05-26 01:35:02 +0200 |
---|---|---|
committer | ajs124 <git@ajs124.de> | 2022-07-21 13:45:21 +0200 |
commit | 1588db305ad8f3be179a47458e5754b38a3b1962 (patch) | |
tree | e7880a65b5655b8f4e77eee2076c15aa1f93767d /pkgs/applications/graphics/smartdeblur | |
parent | 3518b4ac5a0a9dfdff7efb77eea87b4ebe0b4b06 (diff) |
smartdeblur: unstable-2013-01-09 -> unstable-2018-10-29
qt4 -> qt5
Diffstat (limited to 'pkgs/applications/graphics/smartdeblur')
-rw-r--r-- | pkgs/applications/graphics/smartdeblur/default.nix | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/applications/graphics/smartdeblur/default.nix b/pkgs/applications/graphics/smartdeblur/default.nix index c82e22ae0ca83..00d41bf9b293e 100644 --- a/pkgs/applications/graphics/smartdeblur/default.nix +++ b/pkgs/applications/graphics/smartdeblur/default.nix @@ -1,24 +1,29 @@ -{ 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 ]; - nativeBuildInputs = [ cmake ]; - buildInputs = [ qt4 fftw ]; + installPhase = '' + runHook preInstall - cmakeFlags = [ "-DUSE_SYSTEM_FFTW=ON" ]; + install -Dm755 ./SmartDeblur -t $out/bin + + runHook postInstall + ''; meta = with lib; { homepage = "https://github.com/Y-Vladimir/SmartDeblur"; |