libcrafter: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2022-01-04 16:38:41 +01:00
parent 0c8ea70368
commit 0baa07bd59

View File

@ -1,12 +1,14 @@
{ lib, stdenv, fetchzip, autoconf, automake, libtool, libpcap }:
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, libpcap }:
stdenv.mkDerivation rec {
pname = "libcrafter";
version = "1.0";
src = fetchzip {
url = "https://github.com/pellegre/libcrafter/archive/version-${version}.zip";
sha256 = "1d2vgxawdwk2zg3scxclxdby1rhghmivly8azdjja89kw7gls9xl";
src = fetchFromGitHub {
owner = "pellegre";
repo = "libcrafter";
rev = "version-${version}";
sha256 = "sha256-tCdN3+EzISVl+wp5umOFD+bgV+uUdabH+2LyxlV/W7Q=";
};
preConfigure = "cd libcrafter";