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 }:
stdenv.mkDerivation rec {
name = "freesweep-${version}";
version = "1.0.1";
src = fetchurl {
url = "https://github.com/rwestlund/freesweep/archive/v${version}.tar.gz";
sha256 = "0l2kf14558lsq9qd2hs0kcyn9bbl1jdbzwrvcs6mnyjl7zpizcpj";
src = fetchFromGitHub {
owner = "rwestlund";
repo = "freesweep";
rev = "v${version}";
sha256 = "0grkwmz9whg1vlnk6gbr0vv9i2zgbd036182pk0xj4cavaj9rpjb";
};
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];