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