nixpkgs/pkgs/by-name/fi/fityk/package.nix
Anton Mosich 5fc00ecac4
fityk: fix build
The build fails with boost 187, pinning to 186 it is.
2025-04-18 01:19:14 +02:00

59 lines
907 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
wxGTK32,
boost186,
lua,
zlib,
bzip2,
xylib,
readline,
gnuplot,
swig,
}:
stdenv.mkDerivation rec {
pname = "fityk";
version = "1.3.2";
src = fetchFromGitHub {
owner = "wojdyr";
repo = "fityk";
rev = "v${version}";
sha256 = "sha256-m2RaZMYT6JGwa3sOUVsBIzCdZetTbiygaInQWoJ4m1o=";
};
nativeBuildInputs = [
autoreconfHook
lua
swig
];
buildInputs = [
wxGTK32
boost186
lua
zlib
bzip2
xylib
readline
gnuplot
];
configureFlags = [
"--with-wx-config=${lib.getExe' (lib.getDev wxGTK32) "wx-config"}"
];
env.NIX_CFLAGS_COMPILE = toString [
"-std=c++11"
];
meta = {
description = "Curve fitting and peak fitting software";
license = lib.licenses.gpl2;
homepage = "https://fityk.nieto.pl/";
platforms = lib.platforms.linux;
};
}