summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Olsen <daniel.olsen99@gmail.com>2021-10-08 01:31:47 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2022-06-05 18:44:59 +0200
commite5b2c5f447ff3cadbbaff89ef2d547eee07c250d (patch)
treecbc29f2c366e85e525488a9e6eee5f95acfae0f5
parenta84bcf38c814c518680695aeabb36eefd6398232 (diff)
ocamlPackages.alsa: init at 3.0.0
-rw-r--r--pkgs/development/ocaml-modules/alsa/default.nix25
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/alsa/default.nix b/pkgs/development/ocaml-modules/alsa/default.nix
new file mode 100644
index 000000000000..988ca8280dcc
--- /dev/null
+++ b/pkgs/development/ocaml-modules/alsa/default.nix
@@ -0,0 +1,25 @@
+{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, alsa-lib }:
+
+buildDunePackage rec {
+ pname = "alsa";
+ version = "0.3.0";
+
+ minimalOCamlVersion = "4.02";
+
+ src = fetchFromGitHub {
+ owner = "savonet";
+ repo = "ocaml-alsa";
+ rev = version;
+ sha256 = "1qy22g73qc311rmv41w005rdlj5mfnn4yj1dx1jhqzr31zixl8hj";
+ };
+
+ buildInputs = [ dune-configurator ];
+ propagatedBuildInputs = [ alsa-lib ];
+
+ meta = with lib; {
+ homepage = "https://github.com/savonet/ocaml-alsa";
+ description = "OCaml interface for libasound2";
+ license = licenses.gpl2Only;
+ maintainers = with maintainers; [ dandellion ];
+ };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 3119d138dfd1..ba4529909e59 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -24,6 +24,8 @@ let
alcotest-mirage = callPackage ../development/ocaml-modules/alcotest/mirage.nix {};
+ alsa = callPackage ../development/ocaml-modules/alsa { };
+
angstrom = callPackage ../development/ocaml-modules/angstrom { };
angstrom-async = callPackage ../development/ocaml-modules/angstrom-async { };