libcrafter: switch to fetchFromGitHub
This commit is contained in:
parent
0c8ea70368
commit
0baa07bd59
1 changed files with 6 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue