freesweep: use fetchFromGitHub instead of fetchurl as per #32997

This commit is contained in:
Kier Davis 2018-11-15 06:48:39 +00:00
parent b1e5910a7d
commit cb750a6a8a
No known key found for this signature in database
GPG Key ID: 66378DA35FF9F0FA

View File

@ -1,13 +1,15 @@
{ fetchurl, ncurses, stdenv, { fetchFromGitHub, ncurses, stdenv,
updateAutotoolsGnuConfigScriptsHook }: updateAutotoolsGnuConfigScriptsHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "freesweep-${version}"; name = "freesweep-${version}";
version = "1.0.1"; version = "1.0.1";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/rwestlund/freesweep/archive/v${version}.tar.gz"; owner = "rwestlund";
sha256 = "0l2kf14558lsq9qd2hs0kcyn9bbl1jdbzwrvcs6mnyjl7zpizcpj"; repo = "freesweep";
rev = "v${version}";
sha256 = "0grkwmz9whg1vlnk6gbr0vv9i2zgbd036182pk0xj4cavaj9rpjb";
}; };
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ]; nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];