Skip to content

Commit

Permalink
pkgs(soundfonts/arachno): init at 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Oct 28, 2023
1 parent 9e5decc commit e911add
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
modules = import ./modules; # NixOS modules
overlays = import ./overlays; # nixpkgs overlays

example-package = pkgs.callPackage ./pkgs/example-package { };
soundfont-arachno = pkgs.callPackage ./pkgs/soundfonts/arachno.nix { };
# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
# ...
}
9 changes: 0 additions & 9 deletions pkgs/example-package/default.nix

This file was deleted.

27 changes: 27 additions & 0 deletions pkgs/soundfonts/arachno.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
pname = "arachno";
version = "1.0";

src = fetchzip {
# Linked on http://www.arachnosoft.com/main/download.php?id=soundfont-sf2:
url = "https://www.dropbox.com/s/2rnpya9ecb9m4jh/arachno-soundfont-${builtins.replaceStrings ["."] [""] version}-sf2.zip";
sha256 = "sha256-Z5ETe0AKPCi4KlM2xOlNcyQn1xvCuor3S/tcrF+AwNQ=";
stripRoot = false;
};

installPhase = ''
runHook preInstall
install -Dm444 Arachno*.sf2 $out/share/soundfonts/arachno.sf2
runHook postInstall
'';

meta = with lib; {
description = "General MIDI-compliant bank, aimed at enhancing the realism of your MIDI files and arrangements.";
homepage = "http://www.arachnosoft.com/main/soundfont.php";
license = licenses.unfree;
platforms = platforms.all;
maintainers = with maintainers; [ mrtnvgr ];
};
}

0 comments on commit e911add

Please sign in to comment.