summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorDaniel Olsen <daniel.olsen99@gmail.com>2021-10-30 03:46:43 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2022-04-18 15:54:38 +0200
commit0a44fe4daed4a63a959ebaee7b7f902eb48a6320 (patch)
treec9f6d4f51ea3400dc8665a8a9e9826bebb214801 /pkgs/development
parent6a14836a53cb70a9c5ed26cff9d953fedd11c2ed (diff)
downloadnixpkgs-0a44fe4daed4a63a959ebaee7b7f902eb48a6320.tar
nixpkgs-0a44fe4daed4a63a959ebaee7b7f902eb48a6320.tar.gz
nixpkgs-0a44fe4daed4a63a959ebaee7b7f902eb48a6320.tar.bz2
nixpkgs-0a44fe4daed4a63a959ebaee7b7f902eb48a6320.tar.lz
nixpkgs-0a44fe4daed4a63a959ebaee7b7f902eb48a6320.tar.xz
nixpkgs-0a44fe4daed4a63a959ebaee7b7f902eb48a6320.tar.zst
nixpkgs-0a44fe4daed4a63a959ebaee7b7f902eb48a6320.zip
ocamlPackages.lastfm: init at 0.3.3
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/ocaml-modules/lastfm/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lastfm/default.nix b/pkgs/development/ocaml-modules/lastfm/default.nix
new file mode 100644
index 00000000000..41bdac459b3
--- /dev/null
+++ b/pkgs/development/ocaml-modules/lastfm/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildDunePackage
+, fetchFromGitHub
+, pkg-config
+, dune-configurator
+, xmlplaylist
+, ocaml_pcre
+, ocamlnet
+}:
+
+buildDunePackage rec {
+  pname = "lastfm";
+  version = "0.3.3";
+
+  useDune2 = true;
+
+  src = fetchFromGitHub {
+    owner = "savonet";
+    repo = "ocaml-lastfm";
+    rev = "v${version}";
+    sha256 = "1sz400ny9h7fs20k7600q475q164x49ba30ls3q9y35rhm3g2y2b";
+  };
+
+  propagatedBuildInputs = [ xmlplaylist ocaml_pcre ocamlnet ];
+
+  meta = with lib; {
+    homepage = "https://github.com/savonet/ocaml-lastfm";
+    description = "OCaml API to lastfm radio and audioscrobbler";
+    license = licenses.lgpl21Only;
+    maintainers = with maintainers; [ dandellion ];
+  };
+}