From 6e0747312ea936469189a59ddc3b3a3e7205e4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 21 Nov 2024 20:46:23 -0800 Subject: [PATCH] plfit: format with nixfmt-rfc-style --- pkgs/by-name/pl/plfit/package.nix | 47 +++++++++++++++++-------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/pl/plfit/package.nix b/pkgs/by-name/pl/plfit/package.nix index cb07f30df5a0..a5922d5a75e9 100644 --- a/pkgs/by-name/pl/plfit/package.nix +++ b/pkgs/by-name/pl/plfit/package.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, fetchFromGitHub -, cmake -, python ? null -, swig -, llvmPackages +{ + cmake, + fetchFromGitHub, + lib, + llvmPackages, + python ? null, + stdenv, + swig, }: stdenv.mkDerivation (finalAttrs: { @@ -24,18 +25,22 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail ' ''${Python3_SITELIB}' ' ${placeholder "out"}/${python.sitePackages}' ''; - nativeBuildInputs = [ - cmake - ] ++ lib.optionals (python != null) [ - python - swig - ]; + nativeBuildInputs = + [ + cmake + ] + ++ lib.optionals (python != null) [ + python + swig + ]; - cmakeFlags = [ - "-DPLFIT_USE_OPENMP=ON" - ] ++ lib.optionals (python != null) [ - "-DPLFIT_COMPILE_PYTHON_MODULE=ON" - ]; + cmakeFlags = + [ + "-DPLFIT_USE_OPENMP=ON" + ] + ++ lib.optionals (python != null) [ + "-DPLFIT_COMPILE_PYTHON_MODULE=ON" + ]; buildInputs = lib.optionals stdenv.cc.isClang [ llvmPackages.openmp @@ -43,11 +48,11 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; - meta = with lib; { + meta = { description = "Fitting power-law distributions to empirical data"; homepage = "https://github.com/ntamas/plfit"; changelog = "https://github.com/ntamas/plfit/blob/${finalAttrs.src.rev}/CHANGELOG.md"; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ dotlambda ]; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ dotlambda ]; }; })