@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ name = "stb-${version}";
5+ version = "20180211";
6+
7+ src = fetchFromGitHub {
8+ owner = "nothings";
9+ repo = "stb";
10+ rev = "e6afb9cbae4064da8c3e69af3ff5c4629579c1d2";
11+ sha256 = "079nsn9bnb8c0vfq26g5l53q6gzx19a5x9q2nb55mpcljxsgxnmf";
12+ };
13+
14+ dontBuild = true;
15+
16+ installPhase = ''
17+ mkdir -p $out/include/stb
18+ cp *.h $out/include/stb/
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ description = "Single-file public domain libraries for C/C++";
23+ homepage = https://github.com/nothings/stb;
24+ license = licenses.publicDomain;
25+ platforms = platforms.all;
26+ maintainers = with maintainers; [ jfrankenau ];
27+ };
28+}