soundfont-generaluser: 1.471 -> 2.0.2-unstable-2025-04-21, adopt and modernize (#404523)

authored by Peder Bergebakken Sundt and committed by GitHub 534ea25e 47d1ccc2

+17 -15
+17 -15
pkgs/by-name/so/soundfont-generaluser/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchzip, 4 + fetchFromGitHub, 5 5 }: 6 6 7 - stdenv.mkDerivation rec { 7 + stdenv.mkDerivation (finalAttrs: { 8 8 pname = "generaluser"; 9 - version = "1.471"; 9 + version = "2.0.2-unstable-2025-04-21"; 10 10 11 - # we can't use fetchurl since stdenv does not handle unpacking *.zip's by default. 12 - src = fetchzip { 13 - # Linked on https://www.schristiancollins.com/generaluser.php: 14 - url = "https://www.dropbox.com/s/4x27l49kxcwamp5/GeneralUser_GS_${version}.zip"; 15 - sha256 = "sha256-lwUlWubXiVZ8fijKuNF54YQjT0uigjNAbjKaNjmC51s="; 11 + src = fetchFromGitHub { 12 + owner = "mrbumpy409"; 13 + repo = "GeneralUser-GS"; 14 + rev = "74d4cfe4042a61ddab17d4f86dbccd9d2570eb2a"; 15 + hash = "sha256-I27l8F/BFAo6YSNbtAV14AKVsPIJTHFG2eGudseWmjo="; 16 16 }; 17 17 18 18 installPhase = '' 19 - install -Dm644 GeneralUser*.sf2 $out/share/soundfonts/GeneralUser-GS.sf2 19 + runHook preInstall 20 + install -Dm644 $src/GeneralUser-GS.sf2 $out/share/soundfonts/GeneralUser-GS.sf2 21 + runHook postInstall 20 22 ''; 21 23 22 - meta = with lib; { 23 - description = "SoundFont bank featuring 259 instrument presets and 11 drum kits"; 24 + meta = { 25 + description = "General MIDI SoundFont with a low memory footprint"; 24 26 homepage = "https://www.schristiancollins.com/generaluser.php"; 25 - license = licenses.generaluser; 26 - platforms = platforms.all; 27 - maintainers = [ ]; 27 + license = lib.licenses.generaluser; 28 + maintainers = with lib.maintainers; [ keenanweaver ]; 29 + platforms = lib.platforms.all; 28 30 }; 29 - } 31 + })