mpdecimal: split C++ library into separate output
This commit is contained in:
parent
5b91474b29
commit
b67369049f
|
@ -3,7 +3,7 @@
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mpdecimal";
|
pname = "mpdecimal";
|
||||||
version = "2.5.1";
|
version = "2.5.1";
|
||||||
outputs = [ "out" "doc" ];
|
outputs = [ "out" "cxx" "doc" "dev" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-${version}.tar.gz";
|
url = "https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-${version}.tar.gz";
|
||||||
|
@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
configureFlags = [ "LD=${stdenv.cc.targetPrefix}cc" ];
|
configureFlags = [ "LD=${stdenv.cc.targetPrefix}cc" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $cxx/lib
|
||||||
|
mv $out/lib/*c++* $cxx/lib
|
||||||
|
|
||||||
|
mkdir -p $dev/nix-support
|
||||||
|
echo -n $cxx >> $dev/nix-support/propagated-build-inputs
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Library for arbitrary precision decimal floating point arithmetic";
|
description = "Library for arbitrary precision decimal floating point arithmetic";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue