incus: fix container tests from image rename (#360305)
[NixPkgs.git] / pkgs / by-name / so / sound-of-sorting / package.nix
blobb7b14312e3588f8cf2caa047a3d1acb280cbb5ed
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , pkg-config
5 , SDL2
6 , wxGTK32
7 , darwin
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "sound-of-sorting";
12   version = "0.6.5-unstable-2022-10-12";
14   src = fetchFromGitHub {
15     owner = "bingmann";
16     repo = "sound-of-sorting";
17     rev = "5cfcaf752593c8cbcf52555dd22745599a7d8b1b";
18     hash = "sha256-cBrTvFoz6WZIsh5qPPiWxQ338Z0OfcIefiI8CZF6nn8=";
19   };
21   nativeBuildInputs = [
22     pkg-config
23   ];
25   buildInputs = [
26     wxGTK32
27     SDL2
28   ]
29   ++ lib.optionals stdenv.hostPlatform.isDarwin [
30     darwin.apple_sdk.frameworks.Cocoa
31   ];
33   meta = {
34     description = "Audibilization and Visualization of Sorting Algorithms";
35     homepage = "https://panthema.net/2013/sound-of-sorting/";
36     license = lib.licenses.gpl3Plus;
37     mainProgram = "sound-of-sorting";
38     maintainers = with lib.maintainers; [ AndersonTorres ];
39     inherit (SDL2.meta) platforms;
40   };