mldonkey: switch to finalAttrs, use structuredAttrs, move attribute out of top-level

Assisted-by: Cursor Composer 2.5
This commit is contained in:
Guy Chronister
2026-06-08 10:30:30 -05:00
parent c725eea837
commit e7f4629860
2 changed files with 9 additions and 7 deletions
@@ -4,19 +4,22 @@
fetchFromGitHub,
autoreconfHook,
autoconf-archive,
ocamlPackages,
ocaml-ng,
pkg-config,
zlib,
}:
stdenv.mkDerivation rec {
let
ocamlPackages = ocaml-ng.ocamlPackages_4_14;
in
stdenv.mkDerivation (finalAttrs: {
pname = "mldonkey";
version = "3.2.1";
src = fetchFromGitHub {
owner = "ygrek";
repo = "mldonkey";
tag = "release-${lib.replaceStrings [ "." ] [ "-" ] version}";
tag = "release-${lib.replaceStrings [ "." ] [ "-" ] finalAttrs.version}";
hash = "sha256-Dbb7163CdqHY7/FJY2yWBFRudT+hTFT6fO4sFgt6C/A=";
};
@@ -30,6 +33,7 @@ stdenv.mkDerivation rec {
'';
strictDeps = true;
__structuredAttrs = true;
nativeBuildInputs = [
autoreconfHook
@@ -70,4 +74,4 @@ stdenv.mkDerivation rec {
license = lib.licenses.gpl2Only;
platforms = lib.platforms.unix;
};
}
})
+1 -3
View File
@@ -9390,9 +9390,7 @@ with pkgs;
mercurialFull = mercurial.override { fullBuild = true; };
mldonkey = callPackage ../applications/networking/p2p/mldonkey {
ocamlPackages = ocaml-ng.ocamlPackages_4_14;
};
mldonkey = callPackage ../applications/networking/p2p/mldonkey { };
monotone = callPackage ../applications/version-management/monotone {
lua = lua5;