38 lines
627 B
Nix
38 lines
627 B
Nix
|
{
|
||
|
lib,
|
||
|
mkShell,
|
||
|
|
||
|
buildDunePackage,
|
||
|
eio,
|
||
|
eio_main,
|
||
|
|
||
|
ocaml,
|
||
|
dune_3,
|
||
|
odoc,
|
||
|
utop,
|
||
|
|
||
|
enableShell ? false
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
sourceRoot = ./.;
|
||
|
fs = lib.fileset;
|
||
|
sourceFiles = fs.difference
|
||
|
(fs.gitTracked sourceRoot)
|
||
|
(fs.fileFilter (file: file.hasExt "nix") sourceRoot);
|
||
|
sourceSet = fs.toSource { root = sourceRoot; fileset = sourceFiles; };
|
||
|
in buildDunePackage rec {
|
||
|
pname = "bk910x";
|
||
|
version = "devel";
|
||
|
src = sourceSet;
|
||
|
|
||
|
minimalOCamlVersion = "5.1";
|
||
|
dontStrip = true;
|
||
|
|
||
|
propagatedBuildInputs = [ eio eio_main ];
|
||
|
|
||
|
nativeBuildInputs = lib.optionals enableShell [
|
||
|
ocaml dune_3 odoc utop
|
||
|
];
|
||
|
}
|