mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
51 lines
776 B
Nix
51 lines
776 B
Nix
{ 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
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|