plfit: init at 0.9.3
This commit is contained in:
parent
97ed9effd2
commit
a0a955ba45
54
pkgs/tools/misc/plfit/default.nix
Normal file
54
pkgs/tools/misc/plfit/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, cmake
|
||||||
|
, python ? null
|
||||||
|
, swig
|
||||||
|
, llvmPackages
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "plfit";
|
||||||
|
version = "0.9.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ntamas";
|
||||||
|
repo = "plfit";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-y4n6AlGtuuUuA+33oF7lGOYuKSqea4GMSJlv9PaSpQ8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# https://github.com/ntamas/plfit/pull/41
|
||||||
|
(fetchpatch {
|
||||||
|
name = "use-cmake-install-full-dir.patch";
|
||||||
|
url = "https://github.com/ntamas/plfit/commit/d0e77c80e6e899298240e6be465cf580603f6ee2.patch";
|
||||||
|
hash = "sha256-wi3qCp6ZQtrKuM7XDA6xCXunCiqsyhnkxmg2eSmxjYM=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
] ++ lib.optionals (!isNull python) [
|
||||||
|
python
|
||||||
|
swig
|
||||||
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DPLFIT_USE_OPENMP=ON"
|
||||||
|
] ++ lib.optionals (!isNull python) [
|
||||||
|
"-DPLFIT_COMPILE_PYTHON_MODULE=ON"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.cc.isClang [
|
||||||
|
llvmPackages.openmp
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Fitting power-law distributions to empirical data";
|
||||||
|
homepage = "https://github.com/ntamas/plfit";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9077,6 +9077,10 @@ with pkgs;
|
||||||
|
|
||||||
pleroma = callPackage ../servers/pleroma { };
|
pleroma = callPackage ../servers/pleroma { };
|
||||||
|
|
||||||
|
plfit = callPackage ../tools/misc/plfit {
|
||||||
|
python = null;
|
||||||
|
};
|
||||||
|
|
||||||
ploticus = callPackage ../tools/graphics/ploticus {
|
ploticus = callPackage ../tools/graphics/ploticus {
|
||||||
libpng = libpng12;
|
libpng = libpng12;
|
||||||
};
|
};
|
||||||
|
|
|
@ -6384,6 +6384,10 @@ in {
|
||||||
|
|
||||||
plexwebsocket = callPackage ../development/python-modules/plexwebsocket { };
|
plexwebsocket = callPackage ../development/python-modules/plexwebsocket { };
|
||||||
|
|
||||||
|
plfit = toPythonModule (pkgs.plfit.override {
|
||||||
|
inherit (self) python;
|
||||||
|
});
|
||||||
|
|
||||||
plone-testing = callPackage ../development/python-modules/plone-testing { };
|
plone-testing = callPackage ../development/python-modules/plone-testing { };
|
||||||
|
|
||||||
plotly = callPackage ../development/python-modules/plotly { };
|
plotly = callPackage ../development/python-modules/plotly { };
|
||||||
|
|
Loading…
Reference in a new issue