From f4dcd53e046b74f2f67b925dff6b7c1d29e2b2e4 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 20 Nov 2025 09:10:10 +0100 Subject: [PATCH] ocamlPackages.xmlplaylist: small cleaning --- .../ocaml-modules/xmlplaylist/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/ocaml-modules/xmlplaylist/default.nix b/pkgs/development/ocaml-modules/xmlplaylist/default.nix index a9294cf162df..1ad42afbf26a 100644 --- a/pkgs/development/ocaml-modules/xmlplaylist/default.nix +++ b/pkgs/development/ocaml-modules/xmlplaylist/default.nix @@ -6,26 +6,24 @@ xmlm, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "xmlplaylist"; version = "0.1.5"; - useDune2 = true; - src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-xmlplaylist"; - rev = "v${version}"; - sha256 = "1x5lbwkr2ip00x8vyfbl8936yy79j138vx8a16ix7g9p2j5qsfcq"; + tag = "v${finalAttrs.version}"; + hash = "sha256-mDmNixQ3vdOjCQr1jUaQ6XhvRkJ0Ob9RB+BGkSdftPQ="; }; buildInputs = [ dune-configurator ]; propagatedBuildInputs = [ xmlm ]; - meta = with lib; { + meta = { homepage = "https://github.com/savonet/ocaml-xmlplaylist"; description = "Module to parse various RSS playlist formats"; - license = licenses.lgpl21Only; - maintainers = with maintainers; [ dandellion ]; + license = lib.licenses.lgpl21Only; + maintainers = with lib.maintainers; [ dandellion ]; }; -} +})