diff --git a/pkgs/development/ocaml-modules/genspio/default.nix b/pkgs/development/ocaml-modules/genspio/default.nix index 22b93c11ed49..80ceb2e643f0 100644 --- a/pkgs/development/ocaml-modules/genspio/default.nix +++ b/pkgs/development/ocaml-modules/genspio/default.nix @@ -6,7 +6,7 @@ fmt, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "genspio"; version = "0.0.3"; @@ -14,8 +14,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "hammerlab"; - repo = pname; - rev = "${pname}.${version}"; + repo = "genspio"; + rev = "genspio.${finalAttrs.version}"; sha256 = "sha256:1788cnn10idp5i1hggg4pys7k0w8m3h2p4xa42jipfg4cpj7shaf"; }; @@ -35,4 +35,4 @@ buildDunePackage rec { license = lib.licenses.asl20; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/get-activity/default.nix b/pkgs/development/ocaml-modules/get-activity/default.nix index 5157b640aa09..10ccdbab9d0e 100644 --- a/pkgs/development/ocaml-modules/get-activity/default.nix +++ b/pkgs/development/ocaml-modules/get-activity/default.nix @@ -11,7 +11,7 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "get-activity"; inherit (get-activity-lib) version src; @@ -42,7 +42,7 @@ buildDunePackage rec { homepage = "https://github.com/tarides/get-activity"; description = "Collect activity and format as markdown for a journal"; license = lib.licenses.mit; - changelog = "https://github.com/tarides/get-activity/releases/tag/${version}"; + changelog = "https://github.com/tarides/get-activity/releases/tag/${finalAttrs.version}"; maintainers = with lib.maintainers; [ zazedd ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/get-activity/lib.nix b/pkgs/development/ocaml-modules/get-activity/lib.nix index 352b75d27f4f..2cd2eea8a744 100644 --- a/pkgs/development/ocaml-modules/get-activity/lib.nix +++ b/pkgs/development/ocaml-modules/get-activity/lib.nix @@ -13,14 +13,14 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "get-activity-lib"; version = "2.0.1"; src = fetchFromGitHub { owner = "tarides"; repo = "get-activity"; - rev = version; + rev = finalAttrs.version; hash = "sha256-QU/LPIxcem5nFvSxcNApOuBu6UHqLHIXVSOJ2UT0eKA="; }; @@ -48,7 +48,7 @@ buildDunePackage rec { homepage = "https://github.com/tarides/get-activity"; description = "Collect activity and format as markdown for a journal (lib)"; license = lib.licenses.mit; - changelog = "https://github.com/tarides/get-activity/releases/tag/${version}"; + changelog = "https://github.com/tarides/get-activity/releases/tag/${finalAttrs.version}"; maintainers = with lib.maintainers; [ zazedd ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/getopt/default.nix b/pkgs/development/ocaml-modules/getopt/default.nix index 9de42e3d8bae..ad409c008a54 100644 --- a/pkgs/development/ocaml-modules/getopt/default.nix +++ b/pkgs/development/ocaml-modules/getopt/default.nix @@ -4,7 +4,7 @@ buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "getopt"; version = "20230213"; @@ -13,7 +13,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "scemama"; repo = "ocaml-getopt"; - rev = version; + rev = finalAttrs.version; hash = "sha256-oYDm945LgjIW+8x7UrO4FlbHywnu8480aiEVvnjBxc8="; }; @@ -25,4 +25,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ lib.maintainers.ulrikstrid ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/git/default.nix b/pkgs/development/ocaml-modules/git/default.nix index 16580b8208bf..d6119aedfb76 100644 --- a/pkgs/development/ocaml-modules/git/default.nix +++ b/pkgs/development/ocaml-modules/git/default.nix @@ -37,14 +37,14 @@ cmdliner, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "git"; version = "3.18.0"; minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz"; + url = "https://github.com/mirage/ocaml-git/releases/download/${finalAttrs.version}/git-${finalAttrs.version}.tbz"; hash = "sha256-kleVYn5tquC0vRaqUGh53xHLIB5l/v446BN48Y1RfUs="; }; @@ -99,4 +99,4 @@ buildDunePackage rec { ]; homepage = "https://github.com/mirage/ocaml-git"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/github/default.nix b/pkgs/development/ocaml-modules/github/default.nix index 28a5de55978c..102ee8fa1e63 100644 --- a/pkgs/development/ocaml-modules/github/default.nix +++ b/pkgs/development/ocaml-modules/github/default.nix @@ -11,14 +11,14 @@ stringext, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "github"; version = "4.5.1"; src = fetchFromGitHub { owner = "mirage"; repo = "ocaml-github"; - rev = version; + rev = finalAttrs.version; sha256 = "sha256-nxHXOdZAvFe5/lKNw7tTJmY86xzfdFT+fW+lnKioyPM="; }; @@ -40,4 +40,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ niols ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/gitlab/default.nix b/pkgs/development/ocaml-modules/gitlab/default.nix index 3f0255d29ec0..c2f57e351a67 100644 --- a/pkgs/development/ocaml-modules/gitlab/default.nix +++ b/pkgs/development/ocaml-modules/gitlab/default.nix @@ -11,14 +11,14 @@ stringext, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "gitlab"; version = "0.1.8"; src = fetchFromGitHub { owner = "tmcgilchrist"; repo = "ocaml-gitlab"; - rev = version; + rev = finalAttrs.version; hash = "sha256-7pUpH1SoP4eW8ild5j+Tcy+aTXq0+eSkhKUOXJ6Z30k="; }; @@ -46,7 +46,7 @@ buildDunePackage rec { homepage = "https://github.com/tmcgilchrist/ocaml-gitlab"; description = "Native OCaml bindings to Gitlab REST API v4"; license = lib.licenses.bsd3; - changelog = "https://github.com/tmcgilchrist/ocaml-gitlab/releases/tag/${version}"; + changelog = "https://github.com/tmcgilchrist/ocaml-gitlab/releases/tag/${finalAttrs.version}"; maintainers = with lib.maintainers; [ zazedd ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/gluon/default.nix b/pkgs/development/ocaml-modules/gluon/default.nix index 9bc4408c28ab..49daf0af5034 100644 --- a/pkgs/development/ocaml-modules/gluon/default.nix +++ b/pkgs/development/ocaml-modules/gluon/default.nix @@ -10,14 +10,14 @@ uri, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "gluon"; version = "0.0.9"; minimalOCamlVersion = "5.1"; src = fetchurl { - url = "https://github.com/riot-ml/gluon/releases/download/${version}/gluon-${version}.tbz"; + url = "https://github.com/riot-ml/gluon/releases/download/${finalAttrs.version}/gluon-${finalAttrs.version}.tbz"; hash = "sha256-YWJCPokY1A7TGqCGoxJl14oKDVeMNybEEB7KiK92WSo="; }; @@ -40,8 +40,8 @@ buildDunePackage rec { meta = { description = "Minimal, portable, and fast API on top of the operating-system's evented I/O API"; homepage = "https://github.com/riot-ml/gluon"; - changelog = "https://github.com/riot-ml/gluon/blob/${version}/CHANGES.md"; + changelog = "https://github.com/riot-ml/gluon/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/gluten/default.nix b/pkgs/development/ocaml-modules/gluten/default.nix index 689c7a05f659..17f5e2d12c5f 100644 --- a/pkgs/development/ocaml-modules/gluten/default.nix +++ b/pkgs/development/ocaml-modules/gluten/default.nix @@ -6,12 +6,12 @@ lib, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "gluten"; version = "0.5.2"; src = fetchurl { - url = "https://github.com/anmonteiro/gluten/releases/download/${version}/gluten-${version}.tbz"; + url = "https://github.com/anmonteiro/gluten/releases/download/${finalAttrs.version}/gluten-${finalAttrs.version}.tbz"; hash = "sha256-se7Yn59ggLtL0onMjSUsa88B8D05Vybmb6YGcgfnAV8="; }; @@ -30,4 +30,4 @@ buildDunePackage rec { homepage = "https://github.com/anmonteiro/gluten"; maintainers = with lib.maintainers; [ anmonteiro ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/gmap/default.nix b/pkgs/development/ocaml-modules/gmap/default.nix index 5b5fc7ecafff..23a9294185d5 100644 --- a/pkgs/development/ocaml-modules/gmap/default.nix +++ b/pkgs/development/ocaml-modules/gmap/default.nix @@ -7,14 +7,14 @@ fmt, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "gmap"; version = "0.3.0"; duneVersion = "3"; src = fetchurl { - url = "https://github.com/hannesm/gmap/releases/download/${version}/gmap-${version}.tbz"; + url = "https://github.com/hannesm/gmap/releases/download/${finalAttrs.version}/gmap-${finalAttrs.version}.tbz"; sha256 = "073wa0lrb0jj706j87cwzf1a8d1ff14100mnrjs8z3xc4ri9xp84"; }; @@ -33,4 +33,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/graphql/cohttp.nix b/pkgs/development/ocaml-modules/graphql/cohttp.nix index c60745b23cd3..cd326bdde201 100644 --- a/pkgs/development/ocaml-modules/graphql/cohttp.nix +++ b/pkgs/development/ocaml-modules/graphql/cohttp.nix @@ -12,7 +12,7 @@ graphql-lwt, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "graphql-cohttp"; inherit (graphql) version src; @@ -28,7 +28,7 @@ buildDunePackage rec { ocplib-endian ]; - checkInputs = lib.optionals doCheck [ + checkInputs = lib.optionals finalAttrs.doCheck [ alcotest cohttp-lwt-unix graphql-lwt @@ -45,4 +45,4 @@ buildDunePackage rec { description = "Run GraphQL servers with “cohttp”"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/graphql/parser.nix b/pkgs/development/ocaml-modules/graphql/parser.nix index 23fbd366f955..477c84004655 100644 --- a/pkgs/development/ocaml-modules/graphql/parser.nix +++ b/pkgs/development/ocaml-modules/graphql/parser.nix @@ -8,7 +8,7 @@ re, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "graphql_parser"; version = "0.14.0"; @@ -16,7 +16,7 @@ buildDunePackage rec { duneVersion = "3"; src = fetchurl { - url = "https://github.com/andreas/ocaml-graphql-server/releases/download/${version}/graphql-${version}.tbz"; + url = "https://github.com/andreas/ocaml-graphql-server/releases/download/${finalAttrs.version}/graphql-${finalAttrs.version}.tbz"; sha256 = "sha256-v4v1ueF+NV7LvYIVinaf4rE450Z1P9OiMAito6/NHAY="; }; @@ -37,4 +37,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/gsl/default.nix b/pkgs/development/ocaml-modules/gsl/default.nix index 5f30483439c6..c471a7680a7d 100644 --- a/pkgs/development/ocaml-modules/gsl/default.nix +++ b/pkgs/development/ocaml-modules/gsl/default.nix @@ -7,7 +7,7 @@ dune-configurator, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "gsl"; version = "1.25.1"; @@ -16,7 +16,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "mmottl"; repo = "gsl-ocaml"; - rev = version; + rev = finalAttrs.version; hash = "sha256-h1jO2RheBBzxiBgig2yEPk4YyBaZxStt5f+KNZqHdBo="; }; @@ -32,4 +32,4 @@ buildDunePackage rec { license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/gstreamer/default.nix b/pkgs/development/ocaml-modules/gstreamer/default.nix index 14bf90552b7f..7f732905b60f 100644 --- a/pkgs/development/ocaml-modules/gstreamer/default.nix +++ b/pkgs/development/ocaml-modules/gstreamer/default.nix @@ -8,14 +8,14 @@ gst_all_1, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "gstreamer"; version = "0.3.1"; src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-gstreamer"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "0y8xi1q0ld4hrk96bn6jfh9slyjrxmnlhm662ynacp3yzalp8jji"; }; @@ -40,4 +40,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/hack_parallel/default.nix b/pkgs/development/ocaml-modules/hack_parallel/default.nix index f7fb5ace45bc..34ca7bff9d31 100644 --- a/pkgs/development/ocaml-modules/hack_parallel/default.nix +++ b/pkgs/development/ocaml-modules/hack_parallel/default.nix @@ -7,7 +7,7 @@ pkg-config, sqlite, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "hack_parallel"; version = "1.0.1"; minimalOCamlVersion = "4.08"; @@ -15,7 +15,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "rvantonder"; repo = "hack_parallel"; - rev = version; + rev = finalAttrs.version; sha256 = "0qjlkw35r4q2cm0n2x0i73zvx1xgrp6axaia2nm8zxpm49mid629"; }; @@ -51,4 +51,4 @@ buildDunePackage rec { license = lib.licenses.mit; homepage = "https://github.com/rvantonder/hack_parallel"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/happy-eyeballs/default.nix b/pkgs/development/ocaml-modules/happy-eyeballs/default.nix index 43df0a1cec74..e0686ed37fe3 100644 --- a/pkgs/development/ocaml-modules/happy-eyeballs/default.nix +++ b/pkgs/development/ocaml-modules/happy-eyeballs/default.nix @@ -9,14 +9,14 @@ logs, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "happy-eyeballs"; version = "2.0.1"; minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/roburio/happy-eyeballs/releases/download/v${version}/happy-eyeballs-${version}.tbz"; + url = "https://github.com/roburio/happy-eyeballs/releases/download/v${finalAttrs.version}/happy-eyeballs-${finalAttrs.version}.tbz"; hash = "sha256-slVFiDApMbqF4Yhh5hCjraeCNJbU1JoZXpU1VsNR0mk="; }; @@ -37,4 +37,4 @@ buildDunePackage rec { ulrikstrid ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/hc/default.nix b/pkgs/development/ocaml-modules/hc/default.nix index 93c8e18ff2f7..32a578e505c7 100644 --- a/pkgs/development/ocaml-modules/hc/default.nix +++ b/pkgs/development/ocaml-modules/hc/default.nix @@ -4,7 +4,7 @@ fetchzip, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "hc"; version = "0.5"; @@ -12,7 +12,7 @@ buildDunePackage rec { # upstream git server is misconfigured and cannot be cloned src = fetchzip { - url = "https://git.zapashcanon.fr/zapashcanon/hc/archive/${version}.tar.gz"; + url = "https://git.zapashcanon.fr/zapashcanon/hc/archive/${finalAttrs.version}.tar.gz"; hash = "sha256-oTomFi+e9aCgVpZ9EkxQ/dZz18cW2UcaV0ZIokeBoU0="; }; @@ -22,8 +22,8 @@ buildDunePackage rec { description = "Library for hash consing"; homepage = "https://ocaml.org/p/hc/"; downloadPage = "https://git.zapashcanon.fr/zapashcanon/hc"; - changelog = "https://git.zapashcanon.fr/zapashcanon/hc/src/tag/${version}/CHANGES.md"; + changelog = "https://git.zapashcanon.fr/zapashcanon/hc/src/tag/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.isc; maintainers = [ lib.maintainers.ethancedwards8 ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/hex/default.nix b/pkgs/development/ocaml-modules/hex/default.nix index 1d7850b96b03..b6cc694d578c 100644 --- a/pkgs/development/ocaml-modules/hex/default.nix +++ b/pkgs/development/ocaml-modules/hex/default.nix @@ -5,7 +5,7 @@ cstruct, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "hex"; version = "1.5.0"; @@ -13,7 +13,7 @@ buildDunePackage rec { minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/hex-${version}.tbz"; + url = "https://github.com/mirage/ocaml-hex/releases/download/v${finalAttrs.version}/hex-${finalAttrs.version}.tbz"; hash = "sha256-LmfuyhsDBJMHowgxtc1pS8stPn8qa0+1l/vbZHNRtNw="; }; @@ -26,4 +26,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = with lib.maintainers; [ vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/hidapi/default.nix b/pkgs/development/ocaml-modules/hidapi/default.nix index 38e6d503b866..206ecaa86239 100644 --- a/pkgs/development/ocaml-modules/hidapi/default.nix +++ b/pkgs/development/ocaml-modules/hidapi/default.nix @@ -8,7 +8,7 @@ bigstring, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "hidapi"; version = "1.2.1"; @@ -17,7 +17,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "vbmithr"; repo = "ocaml-hidapi"; - rev = version; + rev = finalAttrs.version; hash = "sha256-upygm5G46C65lxaiI6kBOzLrWxzW9qWb6efN/t58SRg="; }; @@ -39,4 +39,4 @@ buildDunePackage rec { maintainers = [ ]; mainProgram = "ocaml-hid-enumerate"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/higlo/default.nix b/pkgs/development/ocaml-modules/higlo/default.nix index f806dbb0be22..167cdf6ac5a1 100644 --- a/pkgs/development/ocaml-modules/higlo/default.nix +++ b/pkgs/development/ocaml-modules/higlo/default.nix @@ -6,7 +6,7 @@ xtmpl, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "higlo"; version = "0.10.0"; @@ -14,7 +14,7 @@ buildDunePackage rec { domain = "framagit.org"; owner = "zoggy"; repo = "higlo"; - rev = version; + rev = finalAttrs.version; hash = "sha256-A5Su4+eBOq/WNdY/3EBQ3KqrRQuaCI1x25cEuoZp4Mo="; }; @@ -25,8 +25,8 @@ buildDunePackage rec { meta = { description = "OCaml library for syntax highlighting"; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; license = lib.licenses.lgpl3; maintainers = with lib.maintainers; [ regnat ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/hkdf/default.nix b/pkgs/development/ocaml-modules/hkdf/default.nix index 095b88d91af3..57374d290587 100644 --- a/pkgs/development/ocaml-modules/hkdf/default.nix +++ b/pkgs/development/ocaml-modules/hkdf/default.nix @@ -7,14 +7,14 @@ ohex, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "hkdf"; version = "2.0.0"; minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/hannesm/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz"; + url = "https://github.com/hannesm/ocaml-hkdf/releases/download/v${finalAttrs.version}/hkdf-${finalAttrs.version}.tbz"; hash = "sha256-VLBxJ5viTTn1nK0QNIAGq/8961x0/RGHZN/C/7ITWNM="; }; @@ -31,4 +31,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ sternenseemann ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/hpack/default.nix b/pkgs/development/ocaml-modules/hpack/default.nix index 8a865415e338..ed0863275241 100644 --- a/pkgs/development/ocaml-modules/hpack/default.nix +++ b/pkgs/development/ocaml-modules/hpack/default.nix @@ -6,12 +6,12 @@ faraday, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "hpack"; version = "0.13.0"; src = fetchurl { - url = "https://github.com/anmonteiro/ocaml-h2/releases/download/${version}/h2-${version}.tbz"; + url = "https://github.com/anmonteiro/ocaml-h2/releases/download/${finalAttrs.version}/h2-${finalAttrs.version}.tbz"; hash = "sha256-DYm28XgXUpTnogciO+gdW4P8Mbl1Sb7DTwQyo7KoBw8="; }; @@ -34,4 +34,4 @@ buildDunePackage rec { anmonteiro ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/httpaf/default.nix b/pkgs/development/ocaml-modules/httpaf/default.nix index ec39fd662995..c42cc1c36178 100644 --- a/pkgs/development/ocaml-modules/httpaf/default.nix +++ b/pkgs/development/ocaml-modules/httpaf/default.nix @@ -8,7 +8,7 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "httpaf"; version = "0.7.1"; @@ -16,8 +16,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "inhabitedtype"; - repo = pname; - rev = version; + repo = "httpaf"; + rev = finalAttrs.version; sha256 = "0zk78af3qyvf6w66mg8sxygr6ndayzqw5s3zfxibvn121xwni26z"; }; @@ -33,6 +33,6 @@ buildDunePackage rec { description = "High-performance, memory-efficient, and scalable web server for OCaml"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; }; -} +}) diff --git a/pkgs/development/ocaml-modules/httpun-ws/default.nix b/pkgs/development/ocaml-modules/httpun-ws/default.nix index 0e199d7168e7..7cea73e84fb8 100644 --- a/pkgs/development/ocaml-modules/httpun-ws/default.nix +++ b/pkgs/development/ocaml-modules/httpun-ws/default.nix @@ -11,12 +11,12 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "httpun-ws"; version = "0.2.0"; src = fetchurl { - url = "https://github.com/anmonteiro/httpun-ws/releases/download/${version}/httpun-ws-${version}.tbz"; + url = "https://github.com/anmonteiro/httpun-ws/releases/download/${finalAttrs.version}/httpun-ws-${finalAttrs.version}.tbz"; hash = "sha256-6uDNLg61tPyctthitxFqbw/IUDsuQ5BGvw5vTLLCl/0="; }; @@ -38,4 +38,4 @@ buildDunePackage rec { homepage = "https://github.com/anmonteiro/httpun-ws"; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/httpun/types.nix b/pkgs/development/ocaml-modules/httpun/types.nix index 260903504967..3d3584e92da9 100644 --- a/pkgs/development/ocaml-modules/httpun/types.nix +++ b/pkgs/development/ocaml-modules/httpun/types.nix @@ -5,12 +5,12 @@ faraday, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "httpun-types"; version = "0.2.0"; src = fetchurl { - url = "https://github.com/anmonteiro/httpun/releases/download/${version}/httpun-${version}.tbz"; + url = "https://github.com/anmonteiro/httpun/releases/download/${finalAttrs.version}/httpun-${finalAttrs.version}.tbz"; hash = "sha256-os4n70yFro4cEAjR49Xok9ayEbk0WGod0pQvfbaHvSw="; }; @@ -22,4 +22,4 @@ buildDunePackage rec { license = lib.licenses.bsd3; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/hxd/default.nix b/pkgs/development/ocaml-modules/hxd/default.nix index 343c757db5cc..9d965c50a226 100644 --- a/pkgs/development/ocaml-modules/hxd/default.nix +++ b/pkgs/development/ocaml-modules/hxd/default.nix @@ -8,14 +8,14 @@ withLwt ? true, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "hxd"; version = "0.4.0"; minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-${version}.tbz"; + url = "https://github.com/dinosaure/hxd/releases/download/v${finalAttrs.version}/hxd-${finalAttrs.version}.tbz"; sha256 = "sha256-EAMLciahdQRHGAmtWvwMIAchJkxcbdPVldJIBApxgFg="; }; @@ -39,4 +39,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.sternenseemann ]; mainProgram = "hxd.xxd"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/imagelib/default.nix b/pkgs/development/ocaml-modules/imagelib/default.nix index d63ea0cd4dc5..7d7f7dec3b51 100644 --- a/pkgs/development/ocaml-modules/imagelib/default.nix +++ b/pkgs/development/ocaml-modules/imagelib/default.nix @@ -7,7 +7,7 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { minimalOCamlVersion = "4.08"; version = "20221222"; pname = "imagelib"; @@ -15,7 +15,7 @@ buildDunePackage rec { duneVersion = "3"; src = fetchurl { - url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/${version}/imagelib-${version}.tbz"; + url = "https://github.com/rlepigre/ocaml-imagelib/releases/download/${finalAttrs.version}/imagelib-${finalAttrs.version}.tbz"; hash = "sha256-BQ2TVxGlpc6temteK84TKXpx0MtHZSykL/TjKN9xGP0="; }; @@ -34,4 +34,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.vbgl ]; mainProgram = "imagetool"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/index/default.nix b/pkgs/development/ocaml-modules/index/default.nix index 6fcf7bcf639f..0425601f4bbf 100644 --- a/pkgs/development/ocaml-modules/index/default.nix +++ b/pkgs/development/ocaml-modules/index/default.nix @@ -19,12 +19,12 @@ lru, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "index"; version = "1.6.2"; src = fetchurl { - url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz"; + url = "https://github.com/mirage/index/releases/download/${finalAttrs.version}/index-${finalAttrs.version}.tbz"; hash = "sha256-k4iDUJik7UTuztBw7YaFXASd8SqYMR1JgLm3JOyriGA="; }; @@ -73,4 +73,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/inotify/default.nix b/pkgs/development/ocaml-modules/inotify/default.nix index 900f60e7c774..d8d01a0614f1 100644 --- a/pkgs/development/ocaml-modules/inotify/default.nix +++ b/pkgs/development/ocaml-modules/inotify/default.nix @@ -7,14 +7,14 @@ fileutils, # only for tests }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { version = "2.6"; pname = "inotify"; src = fetchFromGitHub { owner = "whitequark"; repo = "ocaml-inotify"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-Vg9uVIx6/OMS1WoJIHwZbSt5ZyFy+Xgw5167FJWGslg="; }; @@ -31,7 +31,7 @@ buildDunePackage rec { description = "Bindings for Linux’s filesystem monitoring interface, inotify"; license = lib.licenses.lgpl21; maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; platforms = lib.platforms.linux; }; -} +}) diff --git a/pkgs/development/ocaml-modules/integers/default.nix b/pkgs/development/ocaml-modules/integers/default.nix index 104438eeab50..ffcbd6fb3130 100644 --- a/pkgs/development/ocaml-modules/integers/default.nix +++ b/pkgs/development/ocaml-modules/integers/default.nix @@ -5,14 +5,14 @@ stdlib-shims, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "integers"; version = "0.7.0"; src = fetchFromGitHub { owner = "ocamllabs"; repo = "ocaml-integers"; - rev = version; + rev = finalAttrs.version; sha256 = "sha256-zuUgP1jOiVT0q6GisGpkqx7nybWbARgnAcU8NYqvCzA="; }; @@ -22,7 +22,7 @@ buildDunePackage rec { description = "Various signed and unsigned integer types for OCaml"; license = lib.licenses.mit; homepage = "https://github.com/ocamllabs/ocaml-integers"; - changelog = "https://github.com/ocamllabs/ocaml-integers/raw/${version}/CHANGES.md"; + changelog = "https://github.com/ocamllabs/ocaml-integers/raw/${finalAttrs.version}/CHANGES.md"; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/integers_stubs_js/default.nix b/pkgs/development/ocaml-modules/integers_stubs_js/default.nix index 1ab3dbb25407..6456e37ec3b7 100644 --- a/pkgs/development/ocaml-modules/integers_stubs_js/default.nix +++ b/pkgs/development/ocaml-modules/integers_stubs_js/default.nix @@ -5,7 +5,7 @@ zarith_stubs_js ? null, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "integers_stubs_js"; version = "1.0"; @@ -14,8 +14,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "o1-labs"; - repo = pname; - rev = version; + repo = "integers_stubs_js"; + rev = finalAttrs.version; sha256 = "sha256-lg5cX9/LQlVmR42XcI17b6KaatnFO2L9A9ZXfID8mTY="; }; @@ -26,6 +26,6 @@ buildDunePackage rec { description = "Javascript stubs for the integers library in js_of_ocaml"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ bezmuth ]; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; }; -} +}) diff --git a/pkgs/development/ocaml-modules/io-page/default.nix b/pkgs/development/ocaml-modules/io-page/default.nix index 7860ecd68154..4da13c8470ce 100644 --- a/pkgs/development/ocaml-modules/io-page/default.nix +++ b/pkgs/development/ocaml-modules/io-page/default.nix @@ -8,7 +8,7 @@ ounit, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "io-page"; version = "3.0.0"; @@ -16,7 +16,7 @@ buildDunePackage rec { duneVersion = "3"; src = fetchurl { - url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz"; + url = "https://github.com/mirage/io-page/releases/download/v${finalAttrs.version}/io-page-${finalAttrs.version}.tbz"; hash = "sha256-DjbKdNkFa6YQgJDLmLsuvyrweb4/TNvqAiggcj/3hu4="; }; @@ -34,4 +34,4 @@ buildDunePackage rec { description = "IO memory page library for Mirage backends"; maintainers = with lib.maintainers; [ vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/iomux/default.nix b/pkgs/development/ocaml-modules/iomux/default.nix index 25b7c07ddad8..6f4535e3ec7f 100644 --- a/pkgs/development/ocaml-modules/iomux/default.nix +++ b/pkgs/development/ocaml-modules/iomux/default.nix @@ -6,14 +6,14 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "iomux"; version = "0.4"; minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/haesbaert/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz"; + url = "https://github.com/haesbaert/ocaml-iomux/releases/download/v${finalAttrs.version}/iomux-${finalAttrs.version}.tbz"; hash = "sha256-Hjk/rlWUdoSMXHBSUHaxEHDoBqVJ7rrghLBGqXcrqzU="; }; @@ -26,9 +26,9 @@ buildDunePackage rec { ]; meta = { - homepage = "https://github.com/haesbaert/ocaml-${pname}"; + homepage = "https://github.com/haesbaert/ocaml-iomux"; description = "IO Multiplexers for OCaml"; license = with lib.licenses; [ isc ]; maintainers = with lib.maintainers; [ toastal ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/iri/default.nix b/pkgs/development/ocaml-modules/iri/default.nix index 106e62e630b0..49dfc5d5b2b5 100644 --- a/pkgs/development/ocaml-modules/iri/default.nix +++ b/pkgs/development/ocaml-modules/iri/default.nix @@ -7,7 +7,7 @@ uutf, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "iri"; version = "1.1.0"; @@ -17,7 +17,7 @@ buildDunePackage rec { domain = "framagit.org"; owner = "zoggy"; repo = "ocaml-iri"; - rev = version; + rev = finalAttrs.version; hash = "sha256-fh5+0CWplDdGXCotZL2UzjOGil2LR4NppttaquO/ndE="; }; @@ -31,6 +31,6 @@ buildDunePackage rec { description = "IRI (RFC3987) native OCaml implementation"; license = lib.licenses.lgpl3; maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; }; -} +}) diff --git a/pkgs/development/ocaml-modules/irmin/ppx.nix b/pkgs/development/ocaml-modules/irmin/ppx.nix index 49c6033695be..7e602b2408dd 100644 --- a/pkgs/development/ocaml-modules/irmin/ppx.nix +++ b/pkgs/development/ocaml-modules/irmin/ppx.nix @@ -7,12 +7,12 @@ logs, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "ppx_irmin"; version = "3.11.0"; src = fetchurl { - url = "https://github.com/mirage/irmin/releases/download/${version}/irmin-${version}.tbz"; + url = "https://github.com/mirage/irmin/releases/download/${finalAttrs.version}/irmin-${finalAttrs.version}.tbz"; hash = "sha256-CZlvvMLEPhF6m9jpAoxjXoHMyyZNXgLUJauLBrus29s="; }; @@ -33,4 +33,4 @@ buildDunePackage rec { sternenseemann ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/iter/default.nix b/pkgs/development/ocaml-modules/iter/default.nix index 5ad0a1e1e32d..ed1f44a3b0fc 100644 --- a/pkgs/development/ocaml-modules/iter/default.nix +++ b/pkgs/development/ocaml-modules/iter/default.nix @@ -7,14 +7,14 @@ qcheck-core, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "iter"; version = "1.9"; minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/c-cube/iter/releases/download/v${version}/iter-${version}.tbz"; + url = "https://github.com/c-cube/iter/releases/download/v${finalAttrs.version}/iter-${finalAttrs.version}.tbz"; hash = "sha256-26nluxUuDQ2wBUw2sqlHZ0eihKdzjxXxGVo+IDXH6Wg="; }; @@ -36,4 +36,4 @@ buildDunePackage rec { ''; license = lib.licenses.bsd2; }; -} +}) diff --git a/pkgs/development/ocaml-modules/jose/default.nix b/pkgs/development/ocaml-modules/jose/default.nix index 6e6a59e0dbe5..a32201228299 100644 --- a/pkgs/development/ocaml-modules/jose/default.nix +++ b/pkgs/development/ocaml-modules/jose/default.nix @@ -11,12 +11,12 @@ zarith, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "jose"; version = "0.10.0"; src = fetchurl { - url = "https://github.com/ulrikstrid/ocaml-jose/releases/download/v${version}/${pname}-${version}.tbz"; + url = "https://github.com/ulrikstrid/ocaml-jose/releases/download/v${finalAttrs.version}/jose-${finalAttrs.version}.tbz"; hash = "sha256-F6Odq5JXTkAxdqV3HQusoF+9rvt4BZytslKnsIjJLI8="; }; @@ -44,4 +44,4 @@ buildDunePackage rec { marijanp ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/json-data-encoding/default.nix b/pkgs/development/ocaml-modules/json-data-encoding/default.nix index 3c21d451d81b..7540cca08982 100644 --- a/pkgs/development/ocaml-modules/json-data-encoding/default.nix +++ b/pkgs/development/ocaml-modules/json-data-encoding/default.nix @@ -6,14 +6,14 @@ uri, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "json-data-encoding"; version = "1.0.1"; minimalOCamlVersion = "4.10"; src = fetchFromGitLab { owner = "nomadic-labs"; repo = "data-encoding"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-KoA4xX4tNyi6bX5kso/Wof1LA7431EXJ34eD5X4jnd8="; }; @@ -28,4 +28,4 @@ buildDunePackage rec { license = lib.licenses.lgpl3; maintainers = [ lib.maintainers.ulrikstrid ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/junit/default.nix b/pkgs/development/ocaml-modules/junit/default.nix index 59a6404ecac9..aaae36cf8d10 100644 --- a/pkgs/development/ocaml-modules/junit/default.nix +++ b/pkgs/development/ocaml-modules/junit/default.nix @@ -6,12 +6,12 @@ tyxml, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "junit"; version = "2.3.0"; src = fetchurl { - url = "https://github.com/Khady/ocaml-junit/releases/download/${version}/junit-${version}.tbz"; + url = "https://github.com/Khady/ocaml-junit/releases/download/${finalAttrs.version}/junit-${finalAttrs.version}.tbz"; hash = "sha256-j+4lfuQEWq8z8ik/zfA5phWqv8km+tGEzqG/63cbhTM="; }; @@ -28,4 +28,4 @@ buildDunePackage rec { maintainers = [ ]; homepage = "https://github.com/Khady/ocaml-junit"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/jwto/default.nix b/pkgs/development/ocaml-modules/jwto/default.nix index 6c73b06213ac..5645ff5e8369 100644 --- a/pkgs/development/ocaml-modules/jwto/default.nix +++ b/pkgs/development/ocaml-modules/jwto/default.nix @@ -12,7 +12,7 @@ ppx_deriving, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "jwto"; version = "0.4.0"; @@ -23,7 +23,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "sporto"; repo = "jwto"; - rev = version; + rev = finalAttrs.version; hash = "sha256-TOWwNyrOqboCm8Y4mM6GgtmxGO3NmyDdAX7m8CifA7Y="; }; @@ -51,4 +51,4 @@ buildDunePackage rec { jtcoolen ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/kafka/default.nix b/pkgs/development/ocaml-modules/kafka/default.nix index eb39fcba38e4..d855161cd59e 100644 --- a/pkgs/development/ocaml-modules/kafka/default.nix +++ b/pkgs/development/ocaml-modules/kafka/default.nix @@ -7,12 +7,12 @@ zlib, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "kafka"; version = "0.5"; src = fetchurl { - url = "https://github.com/didier-wenzek/ocaml-kafka/releases/download/${version}/kafka-${version}.tbz"; + url = "https://github.com/didier-wenzek/ocaml-kafka/releases/download/${finalAttrs.version}/kafka-${finalAttrs.version}.tbz"; sha256 = "0m9212yap0a00hd0f61i4y4fna3141p77qj3mm7jl1h4q60jdhvy"; }; @@ -28,4 +28,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.vbgl ]; broken = lib.versionAtLeast ocaml.version "5.0"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/kcas/default.nix b/pkgs/development/ocaml-modules/kcas/default.nix index 35a54b7a0cb3..c2e01340021f 100644 --- a/pkgs/development/ocaml-modules/kcas/default.nix +++ b/pkgs/development/ocaml-modules/kcas/default.nix @@ -12,12 +12,12 @@ mdx, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "kcas"; version = "0.7.0"; src = fetchurl { - url = "https://github.com/ocaml-multicore/kcas/releases/download/${version}/kcas-${version}.tbz"; + url = "https://github.com/ocaml-multicore/kcas/releases/download/${finalAttrs.version}/kcas-${finalAttrs.version}.tbz"; hash = "sha256-mo/otnkB79QdyVgLw1sZFfkR/Z/l15cRVfEYPPd6H5E="; }; @@ -42,8 +42,8 @@ buildDunePackage rec { longDescription = '' A software transactional memory (STM) implementation based on an atomic lock-free multi-word compare-and-set (MCAS) algorithm enhanced with read-only compare operations and ability to block awaiting for changes. ''; - changelog = "https://raw.githubusercontent.com/ocaml-multicore/kcas/refs/tags/${version}/CHANGES.md"; + changelog = "https://raw.githubusercontent.com/ocaml-multicore/kcas/refs/tags/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.isc; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/kdf/default.nix b/pkgs/development/ocaml-modules/kdf/default.nix index cb5c091e3d77..6f3f762e7049 100644 --- a/pkgs/development/ocaml-modules/kdf/default.nix +++ b/pkgs/development/ocaml-modules/kdf/default.nix @@ -8,12 +8,12 @@ ohex, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "kdf"; version = "1.0.0"; src = fetchurl { - url = "https://github.com/robur-coop/kdf/releases/download/v${version}/kdf-${version}.tbz"; + url = "https://github.com/robur-coop/kdf/releases/download/v${finalAttrs.version}/kdf-${finalAttrs.version}.tbz"; hash = "sha256-0WFYKw7+ZtlY3WuMnCEGjp9kVM4hg3fWz4eCPexi4M4="; }; @@ -34,4 +34,4 @@ buildDunePackage rec { license = lib.licenses.bsd2; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/kdl/default.nix b/pkgs/development/ocaml-modules/kdl/default.nix index bd30bc8c8747..cb6c926c21a1 100644 --- a/pkgs/development/ocaml-modules/kdl/default.nix +++ b/pkgs/development/ocaml-modules/kdl/default.nix @@ -9,7 +9,7 @@ zarith, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "kdl"; version = "0.2.0"; @@ -34,7 +34,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "eilvelia"; repo = "ocaml-kdl"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-0MiJe0XbWAlS2NvGxLplsgVfCNaA/7iCMx4+F+6FAtM="; }; @@ -44,4 +44,4 @@ buildDunePackage rec { maintainers = with lib.maintainers; [ toastal ]; homepage = "https://github.com/eilvelia/ocaml-kdl"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/ke/default.nix b/pkgs/development/ocaml-modules/ke/default.nix index 14b984f4b811..21a8536afd51 100644 --- a/pkgs/development/ocaml-modules/ke/default.nix +++ b/pkgs/development/ocaml-modules/ke/default.nix @@ -7,12 +7,12 @@ bigstringaf, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "ke"; version = "0.6"; src = fetchurl { - url = "https://github.com/mirage/ke/releases/download/v${version}/ke-${version}.tbz"; + url = "https://github.com/mirage/ke/releases/download/v${finalAttrs.version}/ke-${finalAttrs.version}.tbz"; sha256 = "sha256-YSFyB+IgCwSxd1lzZhD/kggmmmR/hUy1rnLNrA1nIwU="; }; @@ -33,4 +33,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/kicadsch/default.nix b/pkgs/development/ocaml-modules/kicadsch/default.nix index 92066bf56ed9..79c6cefa5c57 100644 --- a/pkgs/development/ocaml-modules/kicadsch/default.nix +++ b/pkgs/development/ocaml-modules/kicadsch/default.nix @@ -4,14 +4,14 @@ fetchurl, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "kicadsch"; version = "0.9.0"; minimalOCamlVersion = "4.07"; src = fetchurl { - url = "https://github.com/jnavila/plotkicadsch/releases/download/v${version}/plotkicadsch-${version}.tbz"; + url = "https://github.com/jnavila/plotkicadsch/releases/download/v${finalAttrs.version}/plotkicadsch-${finalAttrs.version}.tbz"; sha256 = "sha256-B+vnEPyd3SUzviTdNoyvYk0p7Hrg/XTJm8KxsY8A4jQ="; }; @@ -21,4 +21,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = with lib.maintainers; [ leungbk ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/kqueue/default.nix b/pkgs/development/ocaml-modules/kqueue/default.nix index 07d4921b704c..768e8ae25746 100644 --- a/pkgs/development/ocaml-modules/kqueue/default.nix +++ b/pkgs/development/ocaml-modules/kqueue/default.nix @@ -7,14 +7,14 @@ ppx_optcomp, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "kqueue"; version = "0.4.0"; minimalOCamlVersion = "4.12"; src = fetchurl { - url = "https://github.com/anuragsoni/kqueue-ml/releases/download/${version}/kqueue-${version}.tbz"; + url = "https://github.com/anuragsoni/kqueue-ml/releases/download/${finalAttrs.version}/kqueue-${finalAttrs.version}.tbz"; hash = "sha256-fJHhmAp0EFzR9JH93a+EHy1auwSBKZV/XcBQLCedJLc="; }; @@ -32,8 +32,8 @@ buildDunePackage rec { meta = { description = "OCaml bindings for kqueue event notification interface"; homepage = "https://github.com/anuragsoni/kqueue-ml"; - changelog = "https://github.com/anuragsoni/kqueue-ml/blob/${version}/CHANGES.md"; + changelog = "https://github.com/anuragsoni/kqueue-ml/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ sixstring982 ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lablgtk3/default.nix b/pkgs/development/ocaml-modules/lablgtk3/default.nix index 872da0e0d113..79aa69b65ae6 100644 --- a/pkgs/development/ocaml-modules/lablgtk3/default.nix +++ b/pkgs/development/ocaml-modules/lablgtk3/default.nix @@ -9,14 +9,14 @@ camlp-streams, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { version = "3.1.5"; pname = "lablgtk3"; minimalOCamlVersion = "4.06"; src = fetchurl { - url = "https://github.com/garrigue/lablgtk/releases/download/${version}/lablgtk3-${version}.tbz"; + url = "https://github.com/garrigue/lablgtk/releases/download/${finalAttrs.version}/lablgtk3-${finalAttrs.version}.tbz"; hash = "sha256-1IIc2+zzrjdPIDF9Y+Q/5YAww7qWV7UaLoPmUhl+jqw="; }; @@ -36,4 +36,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lambdapi/default.nix b/pkgs/development/ocaml-modules/lambdapi/default.nix index 0ec480007239..23d1053d963c 100644 --- a/pkgs/development/ocaml-modules/lambdapi/default.nix +++ b/pkgs/development/ocaml-modules/lambdapi/default.nix @@ -18,14 +18,14 @@ yojson, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lambdapi"; version = "3.0.0"; minimalOCamlVersion = "4.14"; src = fetchurl { - url = "https://github.com/Deducteam/lambdapi/releases/download/${version}/lambdapi-${version}.tbz"; + url = "https://github.com/Deducteam/lambdapi/releases/download/${finalAttrs.version}/lambdapi-${finalAttrs.version}.tbz"; hash = "sha256-EGau0mGP2OakAMUUfb9V6pd86NP+LlGKxnhcZ3WhuL4="; }; @@ -64,7 +64,7 @@ buildDunePackage rec { homepage = "https://github.com/Deducteam/lambdapi"; description = "Proof assistant based on the λΠ-calculus modulo rewriting"; license = lib.licenses.cecill21; - changelog = "https://github.com/Deducteam/lambdapi/raw/${version}/CHANGES.md"; + changelog = "https://github.com/Deducteam/lambdapi/raw/${finalAttrs.version}/CHANGES.md"; maintainers = with lib.maintainers; [ bcdarwin ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lambdasoup/default.nix b/pkgs/development/ocaml-modules/lambdasoup/default.nix index ea4b3512c16d..63c1bf7a9131 100644 --- a/pkgs/development/ocaml-modules/lambdasoup/default.nix +++ b/pkgs/development/ocaml-modules/lambdasoup/default.nix @@ -8,7 +8,7 @@ ounit2, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lambdasoup"; version = "1.1.1"; @@ -16,8 +16,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "aantron"; - repo = pname; - rev = version; + repo = "lambdasoup"; + rev = finalAttrs.version; hash = "sha256-+d1JPU7OyQgt8pDTlwZraqPHH+OBQD1ycsELKpHT95Y="; }; @@ -36,4 +36,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lame/default.nix b/pkgs/development/ocaml-modules/lame/default.nix index f0db47138606..0e1c15c227f1 100644 --- a/pkgs/development/ocaml-modules/lame/default.nix +++ b/pkgs/development/ocaml-modules/lame/default.nix @@ -7,7 +7,7 @@ lame, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lame"; version = "0.3.7"; @@ -16,7 +16,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-lame"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-/ZzoGFQQrBf17TaBPSFDQ1yHaQnva56YLmscOacrKBI="; }; @@ -30,4 +30,4 @@ buildDunePackage rec { license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/landmarks/default.nix b/pkgs/development/ocaml-modules/landmarks/default.nix index 40375794fd0c..757417c82f23 100644 --- a/pkgs/development/ocaml-modules/landmarks/default.nix +++ b/pkgs/development/ocaml-modules/landmarks/default.nix @@ -5,7 +5,7 @@ ocaml, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "landmarks"; version = "1.5"; minimalOCamlVersion = "4.08"; @@ -13,14 +13,14 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "LexiFi"; repo = "landmarks"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-eIq02D19OzDOrMDHE1Ecrgk+T6s9vj2X6B2HY+z+K8Q="; }; doCheck = lib.versionAtLeast ocaml.version "4.08" && lib.versionOlder ocaml.version "5.0"; meta = { - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; description = "Simple Profiling Library for OCaml"; longDescription = '' Landmarks is a simple profiling library for OCaml. It provides @@ -28,8 +28,8 @@ buildDunePackage rec { instrumentation of the code may either done by hand, automatically or semi-automatically using the ppx pepreprocessor (see landmarks-ppx package). ''; - changelog = "https://raw.githubusercontent.com/LexiFi/landmarks/refs/tags/v${version}/CHANGES.md"; + changelog = "https://raw.githubusercontent.com/LexiFi/landmarks/refs/tags/v${finalAttrs.version}/CHANGES.md"; maintainers = with lib.maintainers; [ kenran ]; license = lib.licenses.mit; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lastfm/default.nix b/pkgs/development/ocaml-modules/lastfm/default.nix index 88d23138d571..85d077a31758 100644 --- a/pkgs/development/ocaml-modules/lastfm/default.nix +++ b/pkgs/development/ocaml-modules/lastfm/default.nix @@ -6,7 +6,7 @@ xmlplaylist, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lastfm"; version = "0.3.4"; @@ -15,7 +15,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-lastfm"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-1te9B2+sUmkT/i2K5ueswWAWpvJf9rXob0zR4CMOJlg="; }; @@ -30,4 +30,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lens/default.nix b/pkgs/development/ocaml-modules/lens/default.nix index e0d1a0febd2a..a45e1c3074f4 100644 --- a/pkgs/development/ocaml-modules/lens/default.nix +++ b/pkgs/development/ocaml-modules/lens/default.nix @@ -7,7 +7,7 @@ ounit, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lens"; version = "1.2.5"; @@ -16,7 +16,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "pdonadeo"; repo = "ocaml-lens"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "1k23n7pa945fk6nbaq6nlkag5kg97wsw045ghz4gqp8b9i2im3vn"; }; @@ -37,4 +37,4 @@ buildDunePackage rec { kazcw ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/letsencrypt/default.nix b/pkgs/development/ocaml-modules/letsencrypt/default.nix index dd61aa9373ff..0966928123fd 100644 --- a/pkgs/development/ocaml-modules/letsencrypt/default.nix +++ b/pkgs/development/ocaml-modules/letsencrypt/default.nix @@ -18,12 +18,12 @@ domain-name, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "letsencrypt"; version = "1.1.0"; src = fetchurl { - url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-${version}.tbz"; + url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${finalAttrs.version}/letsencrypt-${finalAttrs.version}.tbz"; hash = "sha256-Iw55GffyG5tWA49hao1z9BX6p4N2+EKuhLIoOwG8EKM="; }; @@ -57,4 +57,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.sternenseemann ]; homepage = "https://github.com/mmaker/ocaml-letsencrypt"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/libc/default.nix b/pkgs/development/ocaml-modules/libc/default.nix index cd2501325ab9..0d51c6101b1b 100644 --- a/pkgs/development/ocaml-modules/libc/default.nix +++ b/pkgs/development/ocaml-modules/libc/default.nix @@ -5,12 +5,12 @@ config, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "libc"; version = "0.0.1"; src = fetchurl { - url = "https://github.com/ocaml-sys/libc.ml/releases/download/${version}/libc-${version}.tbz"; + url = "https://github.com/ocaml-sys/libc.ml/releases/download/${finalAttrs.version}/libc-${finalAttrs.version}.tbz"; hash = "sha256-e5x5Yae7V6qOpq+aLZaV+6L9ldy9qDqd9Kc8nkAsENg="; }; @@ -23,4 +23,4 @@ buildDunePackage rec { homepage = "https://github.com/ocaml-sys/libc.ml"; license = lib.licenses.mit; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lilv/default.nix b/pkgs/development/ocaml-modules/lilv/default.nix index dbb2d71c1aa3..8d17d5230bf0 100644 --- a/pkgs/development/ocaml-modules/lilv/default.nix +++ b/pkgs/development/ocaml-modules/lilv/default.nix @@ -8,14 +8,14 @@ lilv, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lilv"; version = "0.1.0"; src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-lilv"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "080ja8c4sxprk5qnldpfzxriag57m9603vny3b4bnwh5xm1id08c"; }; @@ -34,4 +34,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/linenoise/default.nix b/pkgs/development/ocaml-modules/linenoise/default.nix index 05596866b070..2ee7401e59af 100644 --- a/pkgs/development/ocaml-modules/linenoise/default.nix +++ b/pkgs/development/ocaml-modules/linenoise/default.nix @@ -5,7 +5,7 @@ result, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "linenoise"; version = "1.5.1"; @@ -13,8 +13,8 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "fxfactorial"; - repo = "ocaml-${pname}"; - rev = "v${version}"; + repo = "ocaml-linenoise"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-yWBWMbk1anXaF4hIakTOcRZFCYmxI0xG3bHFFOAyEDA="; }; @@ -24,6 +24,6 @@ buildDunePackage rec { description = "OCaml bindings to linenoise"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lo/default.nix b/pkgs/development/ocaml-modules/lo/default.nix index f5ee5cfecc2d..3c5f33194cf8 100644 --- a/pkgs/development/ocaml-modules/lo/default.nix +++ b/pkgs/development/ocaml-modules/lo/default.nix @@ -7,7 +7,7 @@ liblo, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lo"; version = "0.2.0"; @@ -16,7 +16,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-lo"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "0mi8h6f6syxjkxz493l5c3l270pvxx33pz0k3v5465wqjsnppar2"; }; @@ -36,4 +36,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21Plus; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lru/default.nix b/pkgs/development/ocaml-modules/lru/default.nix index 74bb6c07f524..710c855619f2 100644 --- a/pkgs/development/ocaml-modules/lru/default.nix +++ b/pkgs/development/ocaml-modules/lru/default.nix @@ -7,14 +7,14 @@ qcheck-alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lru"; version = "0.3.1"; duneVersion = "3"; src = fetchurl { - url = "https://github.com/pqwy/lru/releases/download/v${version}/lru-${version}.tbz"; + url = "https://github.com/pqwy/lru/releases/download/v${finalAttrs.version}/lru-${finalAttrs.version}.tbz"; hash = "sha256-bL4j0np9WyRPhpwLiBQNR/cPQTpkYu81wACTJdSyNv0="; }; @@ -29,4 +29,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.vbgl ]; license = lib.licenses.isc; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lua-ml/default.nix b/pkgs/development/ocaml-modules/lua-ml/default.nix index 45c0637e5de3..d358a7baf44e 100644 --- a/pkgs/development/ocaml-modules/lua-ml/default.nix +++ b/pkgs/development/ocaml-modules/lua-ml/default.nix @@ -3,7 +3,7 @@ fetchFromGitHub, buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lua-ml"; version = "0.9.4"; @@ -12,14 +12,14 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "lindig"; repo = "lua-ml"; - tag = version; + tag = finalAttrs.version; hash = "sha256-kMBTHzmlrRWNpWwG321jYcM61rE1J3YQkygSrfnZ6Wc="; }; meta = { description = "Embeddable Lua 2.5 interpreter implemented in OCaml"; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; license = lib.licenses.bsd2; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lun/default.nix b/pkgs/development/ocaml-modules/lun/default.nix index 4bf1820920b4..7e6c615f1663 100644 --- a/pkgs/development/ocaml-modules/lun/default.nix +++ b/pkgs/development/ocaml-modules/lun/default.nix @@ -4,14 +4,14 @@ fetchurl, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lun"; version = "0.0.2"; minimalOCamlVersion = "4.12.0"; src = fetchurl { - url = "https://github.com/robur-coop/lun/releases/download/v${version}/lun-${version}.tbz"; + url = "https://github.com/robur-coop/lun/releases/download/v${finalAttrs.version}/lun-${finalAttrs.version}.tbz"; hash = "sha256-1oqjTXY+/jJT1uQOV6iiK9qV9DAmERYsL2BtentmB8I="; }; @@ -21,4 +21,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lustre-v6/default.nix b/pkgs/development/ocaml-modules/lustre-v6/default.nix index 0ec69ec356a8..1feee8346625 100644 --- a/pkgs/development/ocaml-modules/lustre-v6/default.nix +++ b/pkgs/development/ocaml-modules/lustre-v6/default.nix @@ -8,14 +8,14 @@ yaml, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lustre-v6"; version = "6.107.4"; minimalOCamlVersion = "4.12"; src = fetchurl { - url = "https://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/pool/lustre-v6.v${version}.tgz"; + url = "https://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/pool/lustre-v6.v${finalAttrs.version}.tgz"; hash = "sha256-baT5ZJtg5oFoJ5eHb3ISsmY6G31UG10KlNXC+ta+M1c="; }; @@ -36,4 +36,4 @@ buildDunePackage rec { ]; mainProgram = "lv6"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lutils/default.nix b/pkgs/development/ocaml-modules/lutils/default.nix index 318d209a91d1..7091ae899f44 100644 --- a/pkgs/development/ocaml-modules/lutils/default.nix +++ b/pkgs/development/ocaml-modules/lutils/default.nix @@ -6,14 +6,14 @@ num, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lutils"; version = "1.54.1"; minimalOCamlVersion = "4.02"; src = fetchurl { - url = "https://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/pool/lutils.v${version}.tgz"; + url = "https://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/pool/lutils.v${finalAttrs.version}.tgz"; hash = "sha512:d3c3b80286b1aa236ba922d9e18a133721fc80126c8b89520fb811dce9400e217aaa75b5d49e03988be7f6bf5f2e1a391d02ceeaa5ec0a0cd5ce218083a29514"; }; @@ -25,8 +25,8 @@ buildDunePackage rec { meta = { homepage = "https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/"; description = "Tools and libs shared by Verimag/synchronous tools (lustre, lutin, rdbg)"; - changelog = "https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/-/releases/v${version}"; + changelog = "https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/-/releases/v${finalAttrs.version}"; license = lib.licenses.cecill21; mainProgram = "gnuplot-rif"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/luv/default.nix b/pkgs/development/ocaml-modules/luv/default.nix index 193edadb4b09..3360f9077a1c 100644 --- a/pkgs/development/ocaml-modules/luv/default.nix +++ b/pkgs/development/ocaml-modules/luv/default.nix @@ -14,12 +14,12 @@ let version, sha256, }: - buildDunePackage rec { + buildDunePackage (finalAttrs: { pname = "luv"; inherit version; src = fetchurl { - url = "https://github.com/aantron/luv/releases/download/${version}/luv-${version}.tar.gz"; + url = "https://github.com/aantron/luv/releases/download/${finalAttrs.version}/luv-${finalAttrs.version}.tar.gz"; inherit sha256; }; @@ -52,7 +52,7 @@ let sternenseemann ]; }; - }; + }); in { luv-0-5-12 = generic { diff --git a/pkgs/development/ocaml-modules/lwt_eio/default.nix b/pkgs/development/ocaml-modules/lwt_eio/default.nix index d7bc05f2b648..8372d456cc1b 100644 --- a/pkgs/development/ocaml-modules/lwt_eio/default.nix +++ b/pkgs/development/ocaml-modules/lwt_eio/default.nix @@ -5,7 +5,6 @@ eio, lwt, }: - buildDunePackage (finalAttrs: { pname = "lwt_eio"; version = if lib.versionAtLeast lwt.version "6.0.0" then "0.6" else "0.5.1"; diff --git a/pkgs/development/ocaml-modules/lwt_ssl/default.nix b/pkgs/development/ocaml-modules/lwt_ssl/default.nix index ec4ea72c53b5..d246011ba61c 100644 --- a/pkgs/development/ocaml-modules/lwt_ssl/default.nix +++ b/pkgs/development/ocaml-modules/lwt_ssl/default.nix @@ -6,14 +6,14 @@ lwt, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lwt_ssl"; version = "1.2.0"; duneVersion = "3"; src = fetchurl { - url = "https://github.com/ocsigen/lwt_ssl/releases/download/${version}/lwt_ssl-${version}.tbz"; + url = "https://github.com/ocsigen/lwt_ssl/releases/download/${finalAttrs.version}/lwt_ssl-${finalAttrs.version}.tbz"; hash = "sha256-swIK0nrs83fhw/J0Cgizbcu6mR+EMGZRE1dBBUiImnc="; }; @@ -28,4 +28,4 @@ buildDunePackage rec { license = lib.licenses.lgpl21; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/macaddr/default.nix b/pkgs/development/ocaml-modules/macaddr/default.nix index 7de7d60b912c..aab3c3a79568 100644 --- a/pkgs/development/ocaml-modules/macaddr/default.nix +++ b/pkgs/development/ocaml-modules/macaddr/default.nix @@ -7,14 +7,14 @@ ounit2, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "macaddr"; version = "5.6.2"; minimalOCamlVersion = "4.04"; src = fetchurl { - url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-${version}.tbz"; + url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${finalAttrs.version}/ipaddr-${finalAttrs.version}.tbz"; hash = "sha256-CKP6bmQRSQtmYeWxAinqnsa4w3OOn2slWFmxPxRb4TY="; }; @@ -30,4 +30,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/mad/default.nix b/pkgs/development/ocaml-modules/mad/default.nix index 172d10b4452b..a619c84fb9ca 100644 --- a/pkgs/development/ocaml-modules/mad/default.nix +++ b/pkgs/development/ocaml-modules/mad/default.nix @@ -6,7 +6,7 @@ libmad, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "mad"; version = "0.5.3"; @@ -15,7 +15,7 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-mad"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-rSFzWyUYTrGL7GvVsY5qKdCXqY/XJQkuBerexG838jc="; }; @@ -28,4 +28,4 @@ buildDunePackage rec { license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/magic-mime/default.nix b/pkgs/development/ocaml-modules/magic-mime/default.nix index 9f2af3cea2f1..1ff4253ee077 100644 --- a/pkgs/development/ocaml-modules/magic-mime/default.nix +++ b/pkgs/development/ocaml-modules/magic-mime/default.nix @@ -4,12 +4,12 @@ buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "magic-mime"; version = "1.3.1"; src = fetchurl { - url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${version}/magic-mime-${version}.tbz"; + url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${finalAttrs.version}/magic-mime-${finalAttrs.version}.tbz"; hash = "sha256-4CNNA2Jduh76xY5X44dnLXWl6aYh/0ms/g9gnADxOwg="; }; @@ -21,4 +21,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = with lib.maintainers; [ vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/mccs/default.nix b/pkgs/development/ocaml-modules/mccs/default.nix index 00e27fd13e96..900d63944c58 100644 --- a/pkgs/development/ocaml-modules/mccs/default.nix +++ b/pkgs/development/ocaml-modules/mccs/default.nix @@ -5,14 +5,14 @@ cudf, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "mccs"; version = "1.1+19"; src = fetchFromGitHub { owner = "AltGr"; repo = "ocaml-mccs"; - rev = version; + rev = finalAttrs.version; hash = "sha256-xvcqPXyzVGXXFYRVdFPaCfieFEguWffWVB04ImEuPvQ="; }; @@ -32,4 +32,4 @@ buildDunePackage rec { ]; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/mec/default.nix b/pkgs/development/ocaml-modules/mec/default.nix index 29ed1fc0e862..5e5f5dab15a9 100644 --- a/pkgs/development/ocaml-modules/mec/default.nix +++ b/pkgs/development/ocaml-modules/mec/default.nix @@ -12,11 +12,11 @@ bisect_ppx, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "mec"; version = "0.1.0"; src = fetchzip { - url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec/-/archive/${version}/ocaml-ec-${version}.tar.bz2"; + url = "https://gitlab.com/nomadic-labs/cryptography/ocaml-ec/-/archive/${finalAttrs.version}/ocaml-ec-${finalAttrs.version}.tar.bz2"; sha256 = "sha256-uIcGj/exSfuuzsv6C/bnJXpYRu3OY3dcKMW/7+qwi2U="; }; @@ -48,4 +48,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ lib.maintainers.ulrikstrid ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/melange-json/default.nix b/pkgs/development/ocaml-modules/melange-json/default.nix index aa4df6c9ca33..1f0fc5ef4f2a 100644 --- a/pkgs/development/ocaml-modules/melange-json/default.nix +++ b/pkgs/development/ocaml-modules/melange-json/default.nix @@ -7,13 +7,13 @@ ppxlib, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "melange-json"; version = "2.0.0"; src = fetchFromGitHub { owner = "melange-community"; repo = "melange-json"; - tag = version; + tag = finalAttrs.version; hash = "sha256-vgcvPRc2vEHE1AtHyttvs1T0LcoeTOFfmPUCz95goT0="; }; @@ -29,4 +29,4 @@ buildDunePackage rec { lib.maintainers.vog ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/mem_usage/default.nix b/pkgs/development/ocaml-modules/mem_usage/default.nix index 613edfe0377f..b85cbff15636 100644 --- a/pkgs/development/ocaml-modules/mem_usage/default.nix +++ b/pkgs/development/ocaml-modules/mem_usage/default.nix @@ -4,14 +4,14 @@ buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "mem_usage"; version = "0.1.2"; src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-mem_usage"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-5tQNsqbiU9oJvKHUjeTo/ST4A0Axc95gdJISLaa9VRM="; }; @@ -25,4 +25,4 @@ buildDunePackage rec { description = "Cross-platform memory usage information"; maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/memprof-limits/default.nix b/pkgs/development/ocaml-modules/memprof-limits/default.nix index b250c6be3853..66af6ba1810f 100644 --- a/pkgs/development/ocaml-modules/memprof-limits/default.nix +++ b/pkgs/development/ocaml-modules/memprof-limits/default.nix @@ -5,14 +5,14 @@ ocaml, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "memprof-limits"; version = "0.2.1"; src = fetchFromGitLab { owner = "gadmm"; - repo = pname; - rev = "v${version}"; + repo = "memprof-limits"; + rev = "v${finalAttrs.version}"; hash = "sha256-Pmuln5TihPoPZuehZlqPfERif6lf7O+0454kW9y3aKc="; }; @@ -25,4 +25,4 @@ buildDunePackage rec { maintainers = with lib.maintainers; [ alizter ]; broken = !(lib.versionOlder ocaml.version "5.0.0"); }; -} +}) diff --git a/pkgs/development/ocaml-modules/memtrace/default.nix b/pkgs/development/ocaml-modules/memtrace/default.nix index 8b50cf0712dd..783da4401b77 100644 --- a/pkgs/development/ocaml-modules/memtrace/default.nix +++ b/pkgs/development/ocaml-modules/memtrace/default.nix @@ -4,23 +4,23 @@ fetchFromGitHub, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "memtrace"; version = "0.2.3"; src = fetchFromGitHub { owner = "janestreet"; - repo = pname; - rev = "v${version}"; + repo = "memtrace"; + rev = "v${finalAttrs.version}"; hash = "sha256-dWkTrN8ZgNUz7BW7Aut8mfx8o4n8f6UZaDv/7rbbwNs="; }; minimalOCamlVersion = "4.11"; meta = { - homepage = "https://github.com/janestreet/${pname}"; + homepage = "https://github.com/janestreet/memtrace"; description = "Streaming client for OCaml's Memprof"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ niols ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/merlin-extend/default.nix b/pkgs/development/ocaml-modules/merlin-extend/default.nix index 7bc7f39005bf..4e9dd4ca48bf 100644 --- a/pkgs/development/ocaml-modules/merlin-extend/default.nix +++ b/pkgs/development/ocaml-modules/merlin-extend/default.nix @@ -5,12 +5,12 @@ cppo, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "merlin-extend"; version = "0.6.2"; src = fetchurl { - url = "https://github.com/let-def/merlin-extend/releases/download/v${version}/merlin-extend-${version}.tbz"; + url = "https://github.com/let-def/merlin-extend/releases/download/v${finalAttrs.version}/merlin-extend-${finalAttrs.version}.tbz"; hash = "sha256-R1WOfzC2RGLyucgvt/eHEzrPoNUTJFK2rXhI4LD013k="; }; @@ -22,4 +22,4 @@ buildDunePackage rec { license = lib.licenses.mit; maintainers = [ ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/metadata/default.nix b/pkgs/development/ocaml-modules/metadata/default.nix index 1262f54cfafb..12f3d4d52584 100644 --- a/pkgs/development/ocaml-modules/metadata/default.nix +++ b/pkgs/development/ocaml-modules/metadata/default.nix @@ -4,14 +4,14 @@ fetchFromGitHub, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "metadata"; version = "0.3.2"; src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-metadata"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; sha256 = "sha256-g76R1ziRv3VDl0IEJOm626m/ywDz+qgHtQg0uPb0MCU="; }; @@ -23,4 +23,4 @@ buildDunePackage rec { license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/metrics/default.nix b/pkgs/development/ocaml-modules/metrics/default.nix index 421f7b6e911a..4b9fa941dbea 100644 --- a/pkgs/development/ocaml-modules/metrics/default.nix +++ b/pkgs/development/ocaml-modules/metrics/default.nix @@ -6,14 +6,14 @@ fmt, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "metrics"; version = "0.5.0"; minimalOCamlVersion = "4.04"; src = fetchurl { - url = "https://github.com/mirage/metrics/releases/download/v${version}/metrics-${version}.tbz"; + url = "https://github.com/mirage/metrics/releases/download/v${finalAttrs.version}/metrics-${finalAttrs.version}.tbz"; sha256 = "sha256-3zVjgJCdBkYbzQl+9gY8qfPFE2X0dqeXwDZktTwFcV0="; }; @@ -30,4 +30,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.vbgl ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/middleware/default.nix b/pkgs/development/ocaml-modules/middleware/default.nix index 13371ab50e30..736b4a6ec0c1 100644 --- a/pkgs/development/ocaml-modules/middleware/default.nix +++ b/pkgs/development/ocaml-modules/middleware/default.nix @@ -5,14 +5,14 @@ alcotest, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "middleware"; version = "0.0.1"; minimalOCamlVersion = "4.14.0"; src = fetchurl { - url = "https://github.com/skolemlabs/middleware/releases/download/${version}/${pname}-${version}.tbz"; + url = "https://github.com/skolemlabs/middleware/releases/download/${finalAttrs.version}/middleware-${finalAttrs.version}.tbz"; hash = "sha256-zhLEGvyZiKrdBKWcEbB4PHvYzBlkrp1Ldnon0mP2Ypg="; }; @@ -25,8 +25,8 @@ buildDunePackage rec { meta = { description = "Composable stacked functions, which can respond to inner calls"; homepage = "https://github.com/skolemlabs/middleware"; - changelog = "https://github.com/skolemlabs/middleware/blob/${version}/CHANGES.md"; + changelog = "https://github.com/skolemlabs/middleware/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sixstring982 ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/mimic/default.nix b/pkgs/development/ocaml-modules/mimic/default.nix index a17efdc45e42..fe351d2ddf94 100644 --- a/pkgs/development/ocaml-modules/mimic/default.nix +++ b/pkgs/development/ocaml-modules/mimic/default.nix @@ -12,14 +12,14 @@ bigstringaf, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "mimic"; version = "0.0.9"; minimalOCamlVersion = "4.08"; src = fetchurl { - url = "https://github.com/dinosaure/mimic/releases/download/${version}/mimic-${version}.tbz"; + url = "https://github.com/dinosaure/mimic/releases/download/${finalAttrs.version}/mimic-${finalAttrs.version}.tbz"; hash = "sha256-lU3xzrVIqSKnhUQIhaXRamr39zXWw3DtNdM5EUtp4p8="; }; @@ -44,4 +44,4 @@ buildDunePackage rec { homepage = "https://github.com/mirage/ocaml-git"; maintainers = [ lib.maintainers.sternenseemann ]; }; -} +}) diff --git a/pkgs/development/ocaml-modules/minttea/default.nix b/pkgs/development/ocaml-modules/minttea/default.nix index 3685f2d459b4..0d6bf937993d 100644 --- a/pkgs/development/ocaml-modules/minttea/default.nix +++ b/pkgs/development/ocaml-modules/minttea/default.nix @@ -6,14 +6,14 @@ tty, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "minttea"; version = "0.0.3"; minimalOCamlVersion = "5.1"; src = fetchurl { - url = "https://github.com/leostera/minttea/releases/download/${version}/minttea-${version}.tbz"; + url = "https://github.com/leostera/minttea/releases/download/${finalAttrs.version}/minttea-${finalAttrs.version}.tbz"; hash = "sha256-WEaJVCCvsmKcF8+yzovljt8dGWaIv4UmAr74jq6Vo9M="; }; @@ -25,8 +25,8 @@ buildDunePackage rec { meta = { description = "Fun, functional, and stateful way to build terminal apps in OCaml heavily inspired by Go's BubbleTea"; homepage = "https://github.com/leostera/minttea"; - changelog = "https://github.com/leostera/minttea/blob/${version}/CHANGES.md"; + changelog = "https://github.com/leostera/minttea/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sixstring982 ]; }; -} +})