@@ -1,13 +1,14 @@
1−{ fetchurl, lib, stdenv, cmake, qt4, fftw }:
1+{ lib, stdenv, fetchFromGitHub, cmake, qt4, fftw }:
22
33stdenv.mkDerivation rec {
44 pname = "smartdeblur";
55 version = "unstable-2013-01-09";
66
7− src = fetchurl {
8− url = "https://github.com/Y-Vladimir/SmartDeblur/tarball/9895036d26";
9− name = "smartdeblur-${version}.tar.gz";
10− sha256 = "126x9x1zhqdarjz9in0p1qhmqg3jwz7frizadjvx723g2ppi33s4";
7+ src = fetchFromGitHub {
8+ owner = "Y-Vladimir";
9+ repo = "SmartDeblur";
10+ rev = "9895036d26cbb823a9ade28cdcb26fd0ac37258e";
11+ sha256 = "sha256-+EbqEpOG1fj2OKmlz8NRF/CGfT2OYGwY5/lwJHCHaMw=";
1112 };
1213
1314 preConfigure = ''
@@ -19,11 +20,11 @@ stdenv.mkDerivation rec {
1920
2021 cmakeFlags = [ "-DUSE_SYSTEM_FFTW=ON" ];
2122
22− meta = {
23+ meta = with lib; {
2324 homepage = "https://github.com/Y-Vladimir/SmartDeblur";
2425 description = "Tool for restoring blurry and defocused images";
25− license = lib.licenses.gpl3;
26− maintainers = with lib.maintainers; [ ];
27− platforms = with lib.platforms; linux;
26+ license = licenses.gpl3;
27+ maintainers = with maintainers; [ ];
28+ platforms = platforms.linux;
2829 };
2930}