blob: 6bd38285f5cdec5b90b07a71404d3f25b07848b6 (
plain)
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
|
{ 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;
};
}
|