depot/third_party/nixpkgs/pkgs/development/pure-modules/stldict/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

30 lines
908 B
Nix

{ lib, stdenv, fetchurl, pkg-config, pure }:
stdenv.mkDerivation rec {
pname = "pure-stldict";
version = "0.8";
src = fetchurl {
url = "https://bitbucket.org/purelang/pure-lang/downloads/pure-stldict-${version}.tar.gz";
sha256 = "5b894ae6dc574c7022258e2732bea649c82c959ec4d0be13fb5a3e8ba8488f28";
};
postPatch = ''
for f in hashdict.cc orddict.cc; do
sed -i '1i\#include <stddef.h>' $f
done
'';
nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ pure ];
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
setupHook = ../generic-setup-hook.sh;
meta = {
description = "A Pure interface to the C++ dictionary containers map and unordered_map";
homepage = "http://puredocs.bitbucket.org/pure-stldict.html";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ asppsa ];
};
}