diff --git a/pkgs/development/libraries/sokol/default.nix b/pkgs/development/libraries/sokol/default.nix new file mode 100644 index 000000000000..daf1509e5852 --- /dev/null +++ b/pkgs/development/libraries/sokol/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation { + pname = "sokol"; + version = "unstable-2022-06-13"; + + src = fetchFromGitHub { + owner = "floooh"; + repo = "sokol"; + rev = "3c7016105f3b7463f0cfc74df8a55642e5448c11"; + sha256 = "sha256-dKHb6GTp5aJPuWWXI4ZYnhgdXs23gGWyPymGPGwxcLY="; + }; + + dontBuild = true; + dontConfigure = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out/include/sokol + cp *.h $out/include/sokol/ + cp -R util $out/include/sokol/util + + runHook postInstall + ''; + + meta = with lib; { + description = "Minimal cross-platform standalone C headers"; + homepage = "https://github.com/floooh/sokol"; + license = licenses.zlib; + platforms = platforms.all; + maintainers = with maintainers; [ jonnybolton ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e53048ee6ad2..07c13697fe17 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20741,6 +20741,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Carbon; }; + sokol = callPackage ../development/libraries/sokol { }; + sonic = callPackage ../development/libraries/sonic { }; sope = callPackage ../development/libraries/sope { };