summaryrefslogtreecommitdiff
path: root/pkgs/by-name/fi/fityk/package.nix
blob: 0793e847e9a84c84271a19ddc2d7415a6482827e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  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;
  };
}