guitarix: use fetchFromGitHub

This commit is contained in:
Lord-Valen 2024-04-05 15:17:59 -04:00
parent af7b0f1bd8
commit 3f3b3e4705
No known key found for this signature in database
GPG Key ID: 5DEE1DF49CC27E39

View File

@ -1,6 +1,6 @@
{ lib
, stdenv
, fetchurl
, fetchFromGitHub
, avahi
, bluez
, boost
@ -45,11 +45,16 @@ stdenv.mkDerivation (finalAttrs: {
pname = "guitarix";
version = "0.46.0";
src = fetchurl {
url = "https://github.com/brummer10/guitarix/releases/download/V${finalAttrs.version}/guitarix2-${finalAttrs.version}.tar.xz";
sha256 = "sha256-xmC+s/Fs3EVdmebwdM1uorHxDB38SA6EIQRhY33JjEQ=";
src = fetchFromGitHub {
owner = "brummer10";
repo = "guitarix";
rev = "V${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-AftC6fQEDzG/3C/83YbK/++bRgP7vPD0E2X6KEWpowc=";
};
sourceRoot = "${finalAttrs.src.name}/trunk";
nativeBuildInputs = [
gettext
hicolor-icon-theme