9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
32 lines
946 B
Nix
32 lines
946 B
Nix
{ stdenv, fetchurl, pkg-config, pure }:
|
|
|
|
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";
|
|
};
|
|
|
|
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 = stdenv.lib.licenses.lgpl3Plus;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ asppsa ];
|
|
};
|
|
}
|