Files
nixpkgs/pkgs/by-name/so/soil/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1005 B
Nix

{
stdenv,
lib,
fetchzip,
libGL,
libX11,
}:
stdenv.mkDerivation {
pname = "soil";
version = "unstable-2020-01-04";
src = fetchzip {
url = "https://web.archive.org/web/20200104042737id_/http://www.lonesock.net/files/soil.zip";
sha256 = "1c05nwbnfdgwaz8ywn7kg2xrcvrcbpdyhcfkkiiwk69zvil0pbgd";
};
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
libGL
libX11
];
buildPhase = ''
cd src
$CC $NIX_CFLAGS_COMPILE -c *.c
$AR rcs libSOIL.a *.o
'';
installPhase = ''
mkdir -p $out/lib $out/include/SOIL
cp libSOIL.a $out/lib/
cp SOIL.h $out/include/SOIL/
'';
meta = with lib; {
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 = licenses.publicDomain;
platforms = platforms.unix;
maintainers = with maintainers; [ r-burns ];
};
}