2022-12-12 01:37:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, SDL2
|
|
|
|
, wxGTK32
|
|
|
|
, darwin
|
|
|
|
}:
|
2014-09-30 03:35:40 +00:00
|
|
|
|
2022-12-12 01:37:18 +00:00
|
|
|
let
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
|
|
|
in
|
2022-10-14 03:37:03 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sound-of-sorting";
|
2022-10-14 03:37:03 +00:00
|
|
|
version = "unstable-2022-10-12";
|
2014-09-30 03:35:40 +00:00
|
|
|
|
2020-04-05 12:11:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bingmann";
|
|
|
|
repo = "sound-of-sorting";
|
2022-10-14 03:37:03 +00:00
|
|
|
rev = "5cfcaf752593c8cbcf52555dd22745599a7d8b1b";
|
|
|
|
sha256 = "sha256-cBrTvFoz6WZIsh5qPPiWxQ338Z0OfcIefiI8CZF6nn8=";
|
2014-09-30 03:35:40 +00:00
|
|
|
};
|
|
|
|
|
2022-10-14 03:37:03 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-09-30 03:35:40 +00:00
|
|
|
|
2022-10-14 03:37:03 +00:00
|
|
|
buildInputs = [ wxGTK32 SDL2 ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
2014-09-30 03:35:40 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-09-30 03:35:40 +00:00
|
|
|
description = "Audibilization and Visualization of Sorting Algorithms";
|
2020-10-02 07:58:50 +00:00
|
|
|
homepage = "https://panthema.net/2013/sound-of-sorting/";
|
2022-10-14 03:37:03 +00:00
|
|
|
license = with licenses; gpl3Plus;
|
2017-03-06 14:24:40 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2014-09-30 03:35:40 +00:00
|
|
|
};
|
|
|
|
}
|