initial commit
This commit is contained in:
commit
8378ab8edb
|
@ -0,0 +1,2 @@
|
|||
/_build
|
||||
/result
|
|
@ -0,0 +1,4 @@
|
|||
(executable
|
||||
(public_name bk910x)
|
||||
(name main)
|
||||
(libraries eio_main bk910x))
|
|
@ -0,0 +1,8 @@
|
|||
open Eio.Std
|
||||
|
||||
let main out =
|
||||
Eio.Flow.copy_string "Hello, world!\n" out
|
||||
|
||||
let () =
|
||||
Eio_main.run @@ fun env ->
|
||||
main (Eio.Stdenv.stdout env)
|
|
@ -0,0 +1,28 @@
|
|||
# This file is generated by dune, edit dune-project instead
|
||||
opam-version: "2.0"
|
||||
synopsis: "driver for BK Precision 9103 & 9104 power supplies"
|
||||
description: "A longer description"
|
||||
authors: ["xenia <xenia@awoo.systems>"]
|
||||
license: "Proprietary"
|
||||
tags: ["meow"]
|
||||
doc: "https://git.lain.faith/dragon-tools/bk910x"
|
||||
depends: [
|
||||
"ocaml"
|
||||
"dune" {>= "3.14"}
|
||||
"odoc" {with-doc}
|
||||
]
|
||||
build: [
|
||||
["dune" "subst"] {dev}
|
||||
[
|
||||
"dune"
|
||||
"build"
|
||||
"-p"
|
||||
name
|
||||
"-j"
|
||||
jobs
|
||||
"@install"
|
||||
"@runtest" {with-test}
|
||||
"@doc" {with-doc}
|
||||
]
|
||||
]
|
||||
dev-repo: "https://git.lain.faith/dragon-tools/bk910x.git"
|
|
@ -0,0 +1,2 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
(pkgs.ocamlPackages.callPackage ./nix/package.nix {}).package
|
|
@ -0,0 +1,24 @@
|
|||
(lang dune 3.14)
|
||||
|
||||
(name bk910x)
|
||||
|
||||
(generate_opam_files true)
|
||||
|
||||
(source
|
||||
(uri "https://git.lain.faith/dragon-tools/bk910x.git"))
|
||||
|
||||
(authors "xenia <xenia@awoo.systems>")
|
||||
|
||||
; (maintainers "Maintainer Name")
|
||||
|
||||
(license "Proprietary")
|
||||
|
||||
(documentation "https://git.lain.faith/dragon-tools/bk910x")
|
||||
|
||||
(package
|
||||
(name bk910x)
|
||||
(synopsis "driver for BK Precision 9103 & 9104 power supplies")
|
||||
(description "A longer description")
|
||||
(depends ocaml dune)
|
||||
(tags
|
||||
(meow)))
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
lib,
|
||||
mkShell,
|
||||
|
||||
buildDunePackage,
|
||||
eio,
|
||||
eio_main,
|
||||
|
||||
ocaml,
|
||||
dune_3,
|
||||
odoc,
|
||||
utop
|
||||
}:
|
||||
|
||||
{
|
||||
package =
|
||||
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 ];
|
||||
};
|
||||
|
||||
shell = mkShell {
|
||||
nativeBuildInputs = [
|
||||
# base
|
||||
ocaml dune_3 odoc
|
||||
# shell
|
||||
utop
|
||||
# package deps
|
||||
eio eio_main
|
||||
];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
(pkgs.ocamlPackages.callPackage ./nix/package.nix {}).shell
|
Loading…
Reference in New Issue