qoauth: use fetchFromGitHub and pname&version

This commit is contained in:
Felix Buehler 2021-06-20 21:33:58 +02:00
parent bf884a789e
commit 7585fae730

View file

@ -1,12 +1,15 @@
{ lib, stdenv, fetchurl, qtbase, qmake, qca-qt5 }:
{ lib, stdenv, fetchFromGitHub, qtbase, qmake, qca-qt5 }:
stdenv.mkDerivation {
name = "qoauth-2.0.0";
stdenv.mkDerivation rec {
pname = "qoauth";
version = "2.0.0";
src = fetchurl {
url = "https://github.com/ayoy/qoauth/archive/v2.0.0.tar.gz";
name = "qoauth-2.0.0.tar.gz";
sha256 = "a28005986410d333e03d077679cdf6c504ec5a33342867dc0f9fb0b74285e333";
src = fetchFromGitHub {
owner = "ayoy";
repo = "qoauth";
rev = "v${version}";
name = "qoauth-${version}.tar.gz";
sha256 = "1b2jdqs526ac635yb2whm049spcsk7almnnr6r5b4yqhq922anw3";
};
postPatch = ''