at v192 31 lines 930 B view raw
1{ stdenv, fetchurl, pkgconfig, pure }: 2 3stdenv.mkDerivation rec { 4 baseName = "stldict"; 5 version = "0.8"; 6 name = "pure-${baseName}-${version}"; 7 8 src = fetchurl { 9 url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz"; 10 sha256 = "5b894ae6dc574c7022258e2732bea649c82c959ec4d0be13fb5a3e8ba8488f28"; 11 }; 12 13 postPatch = '' 14 for f in hashdict.cc orddict.cc; do 15 sed -i '1i\#include <stddef.h>' $f 16 done 17 ''; 18 19 buildInputs = [ pkgconfig ]; 20 propagatedBuildInputs = [ pure ]; 21 makeFlags = "libdir=$(out)/lib prefix=$(out)/"; 22 setupHook = ../generic-setup-hook.sh; 23 24 meta = { 25 description = "A Pure interface to the C++ dictionary containers map and unordered_map"; 26 homepage = http://puredocs.bitbucket.org/pure-stldict.html; 27 license = stdenv.lib.licenses.lgpl3Plus; 28 platforms = stdenv.lib.platforms.linux; 29 maintainers = with stdenv.lib.maintainers; [ asppsa ]; 30 }; 31}