From 2f4a86e7d7d99ddc0482bd55b47a6cf2034341cc Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 13 Dec 2021 15:34:57 +0100 Subject: [PATCH] messer-slim: switch to fetchFromGitHub --- .../science/biology/messer-slim/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/science/biology/messer-slim/default.nix b/pkgs/applications/science/biology/messer-slim/default.nix index 9d9e46bc7800..f8ce14e4685e 100644 --- a/pkgs/applications/science/biology/messer-slim/default.nix +++ b/pkgs/applications/science/biology/messer-slim/default.nix @@ -1,12 +1,14 @@ -{ lib, stdenv, fetchurl, cmake, gcc, gcc-unwrapped }: +{ lib, stdenv, fetchFromGitHub, cmake, gcc, gcc-unwrapped }: stdenv.mkDerivation rec { version = "3.6"; pname = "messer-slim"; - src = fetchurl { - url = "https://github.com/MesserLab/SLiM/archive/v${version}.tar.gz"; - sha256 = "sha256-djWUKB+NW2a/6oaAMcH0Ul/R/XPHvGDbwlfeFmkbMOY="; + src = fetchFromGitHub { + owner = "MesserLab"; + repo = "SLiM"; + rev = "v${version}"; + sha256 = "sha256-TSbGUfr8YzTRYTkbMfM2+K04Z3h5W4jakw+V4axOKm8="; }; nativeBuildInputs = [ cmake gcc gcc-unwrapped ];