fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 stdenv,
3 lib,
4 fetchzip,
5 libGL,
6 libX11,
7}:
8
9stdenv.mkDerivation {
10 pname = "soil";
11 version = "unstable-2020-01-04";
12
13 src = fetchzip {
14 url = "https://web.archive.org/web/20200104042737id_/http://www.lonesock.net/files/soil.zip";
15 sha256 = "1c05nwbnfdgwaz8ywn7kg2xrcvrcbpdyhcfkkiiwk69zvil0pbgd";
16 };
17
18 buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
19 libGL
20 libX11
21 ];
22
23 buildPhase = ''
24 cd src
25 $CC $NIX_CFLAGS_COMPILE -c *.c
26 $AR rcs libSOIL.a *.o
27 '';
28 installPhase = ''
29 mkdir -p $out/lib $out/include/SOIL
30 cp libSOIL.a $out/lib/
31 cp SOIL.h $out/include/SOIL/
32 '';
33
34 meta = {
35 description = "Simple OpenGL Image Library";
36 longDescription = ''
37 SOIL is a tiny C library used primarily for uploading textures
38 into OpenGL.
39 '';
40 homepage = "https://www.lonesock.net/soil.html";
41 license = lib.licenses.publicDomain;
42 platforms = lib.platforms.unix;
43 maintainers = with lib.maintainers; [ r-burns ];
44 };
45}