1 { lib, stdenv, fetchFromGitHub, copyPkgconfigItems, makePkgconfigItem }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2023-01-29";
7 src = fetchFromGitHub {
10 rev = "5736b15f7ea0ffb08dd38af21067c314d6a3aae9";
11 hash = "sha256-s2ASdlT3bBNrqvwfhhN6skjbmyEnUgvNOrvhgUSRj98=";
14 nativeBuildInputs = [ copyPkgconfigItems ];
17 (makePkgconfigItem rec {
20 cflags = [ "-I${variables.includedir}/stb" ];
22 prefix = "${placeholder "out"}";
23 includedir = "${prefix}/include";
25 inherit (meta) description;
33 mkdir -p $out/include/stb
34 cp *.h $out/include/stb/
39 description = "Single-file public domain libraries for C/C++";
40 homepage = "https://github.com/nothings/stb";
41 license = licenses.publicDomain;
42 platforms = platforms.all;
43 maintainers = with maintainers; [ ];