plfit: format with nixfmt-rfc-style

This commit is contained in:
Robert Schütz 2024-11-21 20:46:23 -08:00
parent c5bafb8dfd
commit 6e0747312e

View File

@ -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 ];
};
})