Sound of Sorting: New Package

Sound of Sorting is an array-sorting visual+sound demo program.
It shows an array as a list of horizontal bars, and realizes a
step-by-step sorting of it. Moreover, it colorizes and emits a
"8-bit-game-like" sound throughout its execution.

Closes #4341

authored by

AndersonTorres and committed by
Mateusz Kowalczyk
6acd05f2 57b292fb

+30
+28
pkgs/misc/sound-of-sorting/default.nix
··· 1 + { stdenv, fetchurl 2 + , SDL2, wxGTK 3 + }: 4 + 5 + stdenv.mkDerivation rec { 6 + 7 + name = "sound-of-sorting-${version}"; 8 + version = "0.6.5"; 9 + 10 + src = fetchurl { 11 + url = "https://github.com/bingmann/sound-of-sorting/archive/${name}.tar.gz"; 12 + sha256 = "1524bhmy5067z9bjc15hvqslw43adgpdn4272iymq09ahja4x76b"; 13 + }; 14 + 15 + buildInputs = with stdenv.lib; 16 + [ wxGTK SDL2 ]; 17 + 18 + preConfigure = '' 19 + export SDL_CONFIG=${SDL2}/bin/sdl2-config 20 + ''; 21 + 22 + meta = with stdenv.lib;{ 23 + description = "Audibilization and Visualization of Sorting Algorithms"; 24 + homepage = http://panthema.net/2013/sound-of-sorting/; 25 + license = licenses.gpl3; 26 + maintainers = [ maintainers.AndersonTorres ]; 27 + }; 28 + }
+2
pkgs/top-level/all-packages.nix
··· 11891 11891 11892 11892 slock = callPackage ../misc/screensavers/slock { }; 11893 11893 11894 + soundOfSorting = callPackage ../misc/sound-of-sorting { }; 11895 + 11894 11896 sourceAndTags = import ../misc/source-and-tags { 11895 11897 inherit pkgs stdenv unzip lib ctags; 11896 11898 hasktags = haskellPackages.hasktags;