Merge pull request #300108 from Lord-Valen/guitarix-0.46.0

guitarix: 0.44.1 -> 0.46.0
This commit is contained in:
Weijia Wang 2024-04-07 19:28:34 +02:00 committed by GitHub
commit 26ae083cc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 24 deletions

View File

@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, fetchFromGitHub
, avahi
, bluez
, boost
@ -42,29 +41,19 @@ let
inherit (lib) optional;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "guitarix";
version = "0.44.1";
version = "0.46.0";
src = fetchurl {
url = "mirror://sourceforge/guitarix/guitarix2-${version}.tar.xz";
sha256 = "d+g9dU9RrDjFQj847rVd5bPiYSjmC1EbAtLe/PNubBg=";
src = fetchFromGitHub {
owner = "brummer10";
repo = "guitarix";
rev = "V${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-AftC6fQEDzG/3C/83YbK/++bRgP7vPD0E2X6KEWpowc=";
};
patches = [
(fetchpatch {
name = "gcc13-fixes.patch";
url = "https://github.com/brummer10/guitarix/commit/b52736180b6966f24398f8a5ad179a58173473ec.patch";
hash = "sha256-+jilgLujy/B6ijUb8NHzt3+4IKCt17X8LmuMLdmsvGw=";
relative = "trunk";
})
];
# doesnt apply cleanly, so doing with substituteInPlace
# https://github.com/brummer10/guitarix/commit/39d7c21c4173eb0f121b1bbff439d9cf43331a00.patch
postPatch = ''
substituteInPlace wscript --replace "open(src_fname, 'rU')" "open(src_fname, 'r')"
'';
sourceRoot = "${finalAttrs.src.name}/trunk";
nativeBuildInputs = [
gettext
@ -140,9 +129,9 @@ stdenv.mkDerivation rec {
clean-sounds, nice overdrive, fat distortion and a diversity of
crazy sounds never heard before.
'';
homepage = "http://guitarix.sourceforge.net/";
homepage = "https://github.com/brummer10/guitarix";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ astsmtl goibhniu ];
maintainers = with maintainers; [ astsmtl goibhniu lord-valen ];
platforms = platforms.linux;
};
}
})