diff options
author | Daniel Olsen <daniel.olsen99@gmail.com> | 2021-10-09 19:51:33 +0200 |
---|---|---|
committer | Daniel Olsen <daniel.olsen99@gmail.com> | 2022-06-08 15:21:28 +0200 |
commit | 430b2bc83b3c67526f134fc06afc977dffb061a4 (patch) | |
tree | b0466ea7e48dc0ff1923b6e400ff586c11e6b628 | |
parent | 866dbd9d4208a63df2cb6a2e4ae54ceeb7195472 (diff) |
ocamlPackages.lame: init at 0.3.6
-rw-r--r-- | pkgs/development/ocaml-modules/lame/default.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 4 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lame/default.nix b/pkgs/development/ocaml-modules/lame/default.nix new file mode 100644 index 0000000000000..85d02538ab0ba --- /dev/null +++ b/pkgs/development/ocaml-modules/lame/default.nix @@ -0,0 +1,26 @@ +{ lib, buildDunePackage, fetchFromGitHub, pkg-config, dune-configurator, lame }: + +buildDunePackage rec { + pname = "lame"; + version = "0.3.6"; + + minimalOCamlVersion = "4.03"; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-lame"; + rev = "v${version}"; + sha256 = "sha256-oRxP1OM0pGdz8CB+ou7kbbrNaB1x9z9KTfciLsivFnI="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ lame ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-lame"; + description = "Bindings for the lame library which provides functions for encoding mp3 files"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 50a61806d81f4..3c507c1fdf988 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -688,6 +688,10 @@ let lambda-term = callPackage ../development/ocaml-modules/lambda-term { }; + lame = callPackage ../development/ocaml-modules/lame { + inherit (pkgs) lame; + }; + lastfm = callPackage ../development/ocaml-modules/lastfm { }; lens = callPackage ../development/ocaml-modules/lens { }; |