1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

ocaml: num: add ability to link statically

This commit is contained in:
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;