diff options
author | yuuko <yuuko@partyvan.io> | 2024-12-15 06:12:40 -0800 |
---|---|---|
committer | yuuko <yuuko@partyvan.io> | 2024-12-15 06:12:40 -0800 |
commit | 0a08e401d26785638c09ce378c282924e3ddbaf9 (patch) | |
tree | ca79cf4a9de71a186f89ac3502c71ae81143bfa1 /srcds-pkgs/libtxc_dxtn.nix | |
parent | 0d7306a1ed22896a4d213a8c8057d488a9912702 (diff) |
pkgs: add some texture authoring tools
Diffstat (limited to 'srcds-pkgs/libtxc_dxtn.nix')
-rw-r--r-- | srcds-pkgs/libtxc_dxtn.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/srcds-pkgs/libtxc_dxtn.nix b/srcds-pkgs/libtxc_dxtn.nix new file mode 100644 index 0000000..6bd3828 --- /dev/null +++ b/srcds-pkgs/libtxc_dxtn.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchurl, autoreconfHook, libGL, libGLU, runCommand, fakegl }: +stdenv.mkDerivation rec { + pname = "libtxc_dxtn"; + version = "1.0.1"; + + src = fetchurl { + url = "https://people.freedesktop.org/~cbrill/libtxc_dxtn/${pname}-${version}.tar.bz2"; + sha256 = "0q5fjaknl7s0z206dd8nzk9bdh8g4p23bz7784zrllnarl90saa5"; + }; + + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = [ libGL libGLU ] ++ lib.optional stdenv.isDarwin fakegl; + + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace Makefile.am --replace \ + "-avoid-version -module" \ + "-avoid-version -static" + ''; + meta = with lib; { + homepage = "http://dri.freedesktop.org/wiki/S3TC"; + repositories.git = "git://people.freedesktop.org/~mareko/libtxc_dxtn"; + license = licenses.mit; + platforms = platforms.unix; + }; +} |