kssd: switch to fetchFromGitHub

+6 -4
+6 -4
pkgs/applications/science/biology/kssd/default.nix
··· 1 - { lib, stdenv, fetchurl, zlib, automake, autoconf, libtool }: 1 + { lib, stdenv, fetchFromGitHub, zlib, automake, autoconf, libtool }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "kssd"; 5 5 version = "1.1"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/yhg926/public_${pname}/archive/v${version}.tar.gz"; 9 - sha256 = "1x3v31cxnww4w5zn15vy0bwk53llsa0f97ma6qbw89h152d2mx5x"; 7 + src = fetchFromGitHub { 8 + owner = "yhg926"; 9 + repo = "public_kssd"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-8jzYqo9LXF66pQ1EIusm+gba2VbTYpJz2K3NVlA3QxY="; 10 12 }; 11 13 12 14 buildInputs = [ zlib automake autoconf libtool ];