smartdeblur: switch to fetchFromGitHub, update meta

+10 -9
+10 -9
pkgs/applications/graphics/smartdeblur/default.nix
··· 1 - { fetchurl, lib, stdenv, cmake, qt4, fftw }: 1 + { lib, stdenv, fetchFromGitHub, cmake, qt4, fftw }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "smartdeblur"; 5 5 version = "unstable-2013-01-09"; 6 6 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="; 11 12 }; 12 13 13 14 preConfigure = '' ··· 19 20 20 21 cmakeFlags = [ "-DUSE_SYSTEM_FFTW=ON" ]; 21 22 22 - meta = { 23 + meta = with lib; { 23 24 homepage = "https://github.com/Y-Vladimir/SmartDeblur"; 24 25 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; 28 29 }; 29 30 }