depot/third_party/nixpkgs/pkgs/development/libraries/sokol/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

35 lines
788 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
pname = "sokol";
version = "unstable-2023-08-04";
src = fetchFromGitHub {
owner = "floooh";
repo = "sokol";
rev = "47d92ff86298fc96b3b84d93d0ee8c8533d3a2d2";
sha256 = "sha256-TsM5wK9a2ectrAY8VnrMPaxCNV3e1yW92SBBCHgs+0k=";
};
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 ];
};
}