2019-05-28 20:09:34 +01:00
|
|
|
{ stdenv, fetchurl, unzip, mesa, libX11 }:
|
2018-06-17 23:11:28 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-06-17 23:11:28 +01:00
|
|
|
name = "soil";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.lonesock.net/files/soil.zip";
|
|
|
|
sha256 = "00gpwp9dldzhsdhksjvmbhsd2ialraqbv6v6dpikdmpncj6mnc52";
|
|
|
|
};
|
|
|
|
|
2019-05-28 20:09:34 +01:00
|
|
|
buildInputs = [ unzip mesa libX11 ];
|
|
|
|
|
2018-06-17 23:11:28 +01:00
|
|
|
sourceRoot = "Simple OpenGL Image Library/projects/makefile";
|
|
|
|
preBuild = "mkdir obj";
|
|
|
|
preInstall = "mkdir -p $out/lib $out/include";
|
|
|
|
makeFlags = [ "LOCAL=$(out)" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple OpenGL Image Library";
|
|
|
|
longDescription = ''
|
|
|
|
SOIL is a tiny C library used primarily for uploading textures
|
|
|
|
into OpenGL.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.lonesock.net/soil.html";
|
2018-06-17 23:11:28 +01:00
|
|
|
license = stdenv.lib.licenses.publicDomain;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|