mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
plfit: format with nixfmt-rfc-style
This commit is contained in:
parent
c5bafb8dfd
commit
6e0747312e
@ -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 ];
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user