diamond: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-12-13 15:35:21 +01:00
parent 865eee2b26
commit e578d45c10

View file

@ -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 = [