blob: fee59ee186cbf063c568e73ef12e238c668528f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ stdenv, fetchurl, gcc, binutils }:
let
pname = "mpdecimal";
version = "2.5.0";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchurl {
url = "https://www.bytereef.org/software/${pname}/releases/${pname}-${version}.tar.gz";
sha256 = "1jm0vzlcsapx9ilrvns4iyws6n5i48zpxykmklfpv98jivf7wh8m";
};
buildPhase = ''
./configure
sed -i 's/-Wl,//' libmpdec/Makefile
make
'';
installPhase = ''
mkdir -p $out/lib
cp libmpdec/*.so* $out/lib
'';
}
|