1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/misc/sound-of-sorting/default.nix
AndersonTorres 6acd05f27a 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
2014-10-01 02:04:36 +01:00

29 lines
674 B
Nix

{ stdenv, fetchurl
, SDL2, wxGTK
}:
stdenv.mkDerivation rec {
name = "sound-of-sorting-${version}";
version = "0.6.5";
src = fetchurl {
url = "https://github.com/bingmann/sound-of-sorting/archive/${name}.tar.gz";
sha256 = "1524bhmy5067z9bjc15hvqslw43adgpdn4272iymq09ahja4x76b";
};
buildInputs = with stdenv.lib;
[ wxGTK SDL2 ];
preConfigure = ''
export SDL_CONFIG=${SDL2}/bin/sdl2-config
'';
meta = with stdenv.lib;{
description = "Audibilization and Visualization of Sorting Algorithms";
homepage = http://panthema.net/2013/sound-of-sorting/;
license = licenses.gpl3;
maintainers = [ maintainers.AndersonTorres ];
};
}