mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
soundfont-generaluser: 1.471 -> 2.0.2-unstable-2025-04-21, adopt and modernize
This commit is contained in:
parent
0f27c6168d
commit
c0826d818e
1 changed files with 17 additions and 15 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue