summary refs log tree commit diff
path: root/pkgs/misc/sound-of-sorting/default.nix
blob: fa1be80287a2c894107b54f85fc0bd551dc09f22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ 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 ];
  };
}