8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
28 lines
790 B
Nix
28 lines
790 B
Nix
{ stdenv, fetchurl, unzip, mesa, libX11 }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "soil";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.lonesock.net/files/soil.zip";
|
|
sha256 = "00gpwp9dldzhsdhksjvmbhsd2ialraqbv6v6dpikdmpncj6mnc52";
|
|
};
|
|
|
|
buildInputs = [ unzip mesa libX11 ];
|
|
|
|
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.
|
|
'';
|
|
homepage = "https://www.lonesock.net/soil.html";
|
|
license = stdenv.lib.licenses.publicDomain;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|