summary refs log tree commit diff
path: root/pkgs/development/libraries/soil/default.nix
blob: 6e30825cfb391ad32b5ea2b7a8cab0360c0adcc5 (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
{ stdenv, fetchurl, unzip, mesa_noglu, libX11 }:

stdenv.mkDerivation rec {
  name = "soil";

  src = fetchurl {
    url    = "http://www.lonesock.net/files/soil.zip";
    sha256 = "00gpwp9dldzhsdhksjvmbhsd2ialraqbv6v6dpikdmpncj6mnc52";
  };

  buildInputs = [ unzip mesa_noglu 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;
  };
}