libsmf: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-12-26 00:49:12 +01:00
parent 12a0f69f6f
commit cb88231ce7

View file

@ -1,11 +1,14 @@
{ lib, stdenv, fetchurl, autoreconfHook, glib, pkg-config }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, glib, pkg-config }:
stdenv.mkDerivation rec {
version = "1.3";
pname = "libsmf";
src = fetchurl {
url = "https://github.com/stump/libsmf/archive/${pname}-${version}.tar.gz";
sha256 = "1527pcc1vd0l5iks2yw8m0bymcrnih2md5465lwpzw0wgy4rky7n";
src = fetchFromGitHub {
owner = "stump";
repo = "libsmf";
rev = "libsmf-${version}";
sha256 = "sha256-OJXJkXvbM2GQNInZXU2ldObquKHhqkdu1zqUDnVZN0Y=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];