2021-01-23 17:15:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, pure }:
|
2015-05-26 07:58:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "stldict";
|
|
|
|
version = "0.8";
|
|
|
|
name = "pure-${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
|
|
|
|
sha256 = "5b894ae6dc574c7022258e2732bea649c82c959ec4d0be13fb5a3e8ba8488f28";
|
|
|
|
};
|
|
|
|
|
2015-07-12 22:02:12 +01:00
|
|
|
postPatch = ''
|
|
|
|
for f in hashdict.cc orddict.cc; do
|
|
|
|
sed -i '1i\#include <stddef.h>' $f
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2015-05-26 07:58:18 +01:00
|
|
|
propagatedBuildInputs = [ pure ];
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
|
2015-05-26 07:58:18 +01:00
|
|
|
setupHook = ../generic-setup-hook.sh;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Pure interface to the C++ dictionary containers map and unordered_map";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://puredocs.bitbucket.org/pure-stldict.html";
|
2021-01-23 17:15:07 +00:00
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ asppsa ];
|
2015-05-26 07:58:18 +01:00
|
|
|
};
|
|
|
|
}
|