messer-slim: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-12-13 15:34:57 +01:00
parent e1bd890fb0
commit 2f4a86e7d7

View file

@ -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 ];