summary refs log tree commit diff
path: root/pkgs/development/libraries/stlport/default.nix
blob: ff1a7b57f4a51da815d2cf746f2dd6f47f6bf040 (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
26
{stdenv, fetchurl}:

stdenv.mkDerivation rec {
  name = "STLport-5.2.1";

  src = fetchurl {
    url = "mirror://sourceforge/stlport/${name}.tar.bz2";
    sha256 = "1jbgak1m1qk7d4gyn1p2grbws2icsf7grbs3dh44ai9ck1xh0nvm";
  };

  # fix hardcoded /usr/bin; not recognizing the standard --disable-static flag
  configurePhase = ''
    echo Preconf: build/Makefiles/gmake/*/sys.mak
    for f in build/Makefiles/gmake/*/sys.mak; do
      substituteInPlace "$f" --replace /usr/bin/ ""
    done
    ./configure --prefix=$out
  '';

  meta = {
    description = "An implementation of the C++ Standard Library";
    homepage = https://sourceforge.net/projects/stlport/;
    license = stdenv.lib.licenses.free; # seems BSD-like
    broken = true; # probably glibc-2.20 -related issue
  };
}