diff --git a/pkgs/applications/science/biology/diamond/default.nix b/pkgs/applications/science/biology/diamond/default.nix index 4f23f3f9a82c..1221684f15c6 100644 --- a/pkgs/applications/science/biology/diamond/default.nix +++ b/pkgs/applications/science/biology/diamond/default.nix @@ -1,12 +1,14 @@ -{ lib, stdenv, fetchurl, cmake, zlib }: +{ lib, stdenv, fetchFromGitHub, cmake, zlib }: stdenv.mkDerivation rec { pname = "diamond"; version = "0.8.36"; - src = fetchurl { - url = "https://github.com/bbuchfink/diamond/archive/v${version}.tar.gz"; - sha256 = "092smzzjcg51n3x4h84k52ijpz9m40ri838j9k2i463ribc3c8rh"; + src = fetchFromGitHub { + owner = "bbuchfink"; + repo = "diamond"; + rev = "v${version}"; + sha256 = "sha256-7uqOQOzkYN0RNwKBGUZ/Ny5NVZMoGByOk+GUvjdBzck="; }; patches = [