about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/stb/default.nix
blob: 22a97d890e5628e47f88347bcef7132aff02d533 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation {
  pname = "stb";
  version = "unstable-2021-09-10";

  src = fetchFromGitHub {
    owner = "nothings";
    repo = "stb";
    rev = "af1a5bc352164740c1cc1354942b1c6b72eacb8a";
    sha256 = "0qq35cd747lll4s7bmnxb3pqvyp2hgcr9kyf758fax9lx76iwjhr";
  };

  dontBuild = true;

  installPhase = ''
    mkdir -p $out/include/stb
    cp *.h $out/include/stb/
  '';

  meta = with lib; {
    description = "Single-file public domain libraries for C/C++";
    homepage = "https://github.com/nothings/stb";
    license = licenses.publicDomain;
    platforms = platforms.all;
    maintainers = with maintainers; [ jfrankenau ];
  };
}