889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
35 lines
788 B
Nix
35 lines
788 B
Nix
{ 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 ];
|
|
};
|
|
}
|
|
|