summary refs log tree commit diff
path: root/pkgs/development/libraries/libtxc_dxtn_s2tc/default.nix
blob: f9f44f5a653156e6c04f88c0106adc1d6718c618 (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
{ stdenv, fetchurl, autoreconfHook, libGL, libGLU }:

let version = "1.0"; in

stdenv.mkDerivation {
  pname = "libtxc_dxtn_s2tc";
  inherit version;

  src = fetchurl {
    url = "https://github.com/divVerent/s2tc/archive/v${version}.tar.gz";
    sha256 = "0ibfdib277fhbqvxzan0bmglwnsl1y1rw2g8skvz82l1sfmmn752";
  };

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ libGL libGLU ];

  meta = {
    description = "A patent-free S3TC compatible implementation";
    homepage = https://github.com/divVerent/s2tc;
    repositories.git = https://github.com/divVerent/s2tc.git;
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.linux;
    maintainers = [ stdenv.lib.maintainers.cpages ];
  };
}