Skip to content

Commit

Permalink
pkgs(soundfonts/touhou): init at 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Oct 29, 2023
1 parent c514a02 commit 3fac9c7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
overlays = import ./overlays; # nixpkgs overlays

soundfont-arachno = pkgs.callPackage ./pkgs/soundfonts/arachno.nix { };
soundfont-touhou = pkgs.callPackage ./pkgs/soundfonts/touhou.nix { };

# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
# ...
}
27 changes: 27 additions & 0 deletions pkgs/soundfonts/touhou.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib, stdenvNoCC, fetchurl }:

stdenvNoCC.mkDerivation rec {
pname = "soundfont-touhou";
version = "1.0";

src = fetchurl {
url = "https://musical-artifacts.com/artifacts/433/Touhou.sf2";
sha256 = "sha256-wFNy92FkqskW+ZE1UPq50w1lDPIF8ADaJ1E6uYBUtBk=";
};

phases = [ "installPhase" ];

installPhase = ''
runHook preInstall
install -Dm444 $src $out/share/soundfonts/touhou.sf2
runHook postInstall
'';

meta = with lib; {
description = "Excellent General MIDI compatible soundfont from the Touhou series of games.";
homepage = "https://musical-artifacts.com/artifacts/433";
license = licenses.cc-by-40;
platforms = platforms.all;
maintainers = with maintainers; [ mrtnvgr ];
};
}

0 comments on commit 3fac9c7

Please sign in to comment.