2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-07-14 22:45:07 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "stb";
|
2018-07-14 22:45:07 +02:00
|
|
|
version = "20180211";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nothings";
|
|
|
|
repo = "stb";
|
|
|
|
rev = "e6afb9cbae4064da8c3e69af3ff5c4629579c1d2";
|
|
|
|
sha256 = "079nsn9bnb8c0vfq26g5l53q6gzx19a5x9q2nb55mpcljxsgxnmf";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include/stb
|
|
|
|
cp *.h $out/include/stb/
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-07-14 22:45:07 +02:00
|
|
|
description = "Single-file public domain libraries for C/C++";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nothings/stb";
|
2018-07-14 22:45:07 +02:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|