soundfont-generaluser: 1.471 -> 2.0.2-unstable-2025-04-21, adopt and modernize

This commit is contained in:
Keenan Weaver 2025-05-05 19:17:59 -05:00
parent 0f27c6168d
commit c0826d818e
No known key found for this signature in database
GPG key ID: 0926B70C6A27AAE1

View file

@ -1,29 +1,31 @@
{ {
lib, lib,
stdenv, stdenv,
fetchzip, fetchFromGitHub,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "generaluser"; pname = "generaluser";
version = "1.471"; version = "2.0.2-unstable-2025-04-21";
# we can't use fetchurl since stdenv does not handle unpacking *.zip's by default. src = fetchFromGitHub {
src = fetchzip { owner = "mrbumpy409";
# Linked on https://www.schristiancollins.com/generaluser.php: repo = "GeneralUser-GS";
url = "https://www.dropbox.com/s/4x27l49kxcwamp5/GeneralUser_GS_${version}.zip"; rev = "74d4cfe4042a61ddab17d4f86dbccd9d2570eb2a";
sha256 = "sha256-lwUlWubXiVZ8fijKuNF54YQjT0uigjNAbjKaNjmC51s="; hash = "sha256-I27l8F/BFAo6YSNbtAV14AKVsPIJTHFG2eGudseWmjo=";
}; };
installPhase = '' installPhase = ''
install -Dm644 GeneralUser*.sf2 $out/share/soundfonts/GeneralUser-GS.sf2 runHook preInstall
install -Dm644 $src/GeneralUser-GS.sf2 $out/share/soundfonts/GeneralUser-GS.sf2
runHook postInstall
''; '';
meta = with lib; { meta = {
description = "SoundFont bank featuring 259 instrument presets and 11 drum kits"; description = "General MIDI SoundFont with a low memory footprint";
homepage = "https://www.schristiancollins.com/generaluser.php"; homepage = "https://www.schristiancollins.com/generaluser.php";
license = licenses.generaluser; license = lib.licenses.generaluser;
platforms = platforms.all; maintainers = with lib.maintainers; [ keenanweaver ];
maintainers = [ ]; platforms = lib.platforms.all;
}; };
} })