summary refs log tree commit diff
path: root/pkgs/applications/science/misc/fityk/default.nix
blob: a4aa6457d608dcb462dea788033c2db7e2222804 (plain) (blame)
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
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, wxGTK32
, boost
, lua
, zlib
, bzip2
, xylib
, readline
, gnuplot
, swig3
}:

stdenv.mkDerivation rec {
  pname = "fityk";
  version = "1.3.2";

  src = fetchFromGitHub {
    owner = "wojdyr";
    repo = "fityk";
    rev = "v${version}";
    sha256 = "sha256-m2RaZMYT6JGwa3sOUVsBIzCdZetTbiygaInQWoJ4m1o=";
  };

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [
    wxGTK32
    boost
    lua
    zlib
    bzip2
    xylib
    readline
    gnuplot
    swig3
  ];

  NIX_CFLAGS_COMPILE = [
    "-std=c++11"
  ];

  meta = {
    description = "Curve fitting and peak fitting software";
    license = lib.licenses.gpl2;
    homepage = "https://fityk.nieto.pl/";
    platforms = lib.platforms.linux;
  };
}