ocaml: num: add ability to link statically

gstqt5
Alexander Bantyev 2019-11-20 14:32:19 +03:00
parent 08edfb6967
commit 81384e0f0c
No known key found for this signature in database
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib }:
{ stdenv, lib, fetchFromGitHub, fetchpatch, ocaml, findlib, withStatic ? false }:
stdenv.mkDerivation rec {
version = "1.1";
@ -14,8 +14,7 @@ stdenv.mkDerivation rec {
url = "https://github.com/ocaml/num/commit/6d4c6d476c061298e6385e8a0864f083194b9307.patch";
sha256 = "18zlvb5n327q8y3c52js5dvyy29ssld1l53jqng8m9w1k24ypi0b";
})
./enable-static.patch
];
] ++ lib.optional withStatic ./enable-static.patch;
nativeBuildInputs = [ ocaml findlib ];
buildInputs = [ ocaml findlib ];

View File

@ -38,7 +38,7 @@ in
};
nativeBuildInputs = [ ocaml findlib ];
buildInputs = [ findlib ];
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;