nixpkgs-suyu/pkgs/development/ocaml-modules/cstruct/unix.nix

15 lines
263 B
Nix
Raw Normal View History

{ lib, buildDunePackage, cstruct }:
if !lib.versionAtLeast (cstruct.version or "1") "3"
then cstruct
else
2017-11-27 20:08:40 +01:00
buildDunePackage {
pname = "cstruct-unix";
inherit (cstruct) version src meta;
2017-11-27 20:08:40 +01:00
minimumOCamlVersion = "4.02";
2017-11-27 20:08:40 +01:00
propagatedBuildInputs = [ cstruct ];
}