2021-03-20 11:35:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, pkg-config
|
|
|
|
, which
|
2021-03-14 17:50:12 +00:00
|
|
|
, bison
|
2021-03-20 11:35:55 +00:00
|
|
|
, gnuplot
|
|
|
|
, libxls
|
2021-04-22 13:49:26 +00:00
|
|
|
, libxlsxwriter
|
2021-03-20 11:35:55 +00:00
|
|
|
, libxml2
|
|
|
|
, libzip
|
|
|
|
, ncurses
|
2023-12-06 10:42:41 +00:00
|
|
|
, xlsSupport ? false
|
2021-03-20 11:35:55 +00:00
|
|
|
}:
|
2015-03-01 13:37:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sc-im";
|
2023-01-13 10:21:29 +00:00
|
|
|
version = "0.8.3";
|
2015-03-01 13:37:28 +00:00
|
|
|
|
2016-02-07 13:42:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andmarti1424";
|
|
|
|
repo = "sc-im";
|
|
|
|
rev = "v${version}";
|
2023-01-13 10:21:29 +00:00
|
|
|
sha256 = "sha256-QlnxMe0WsRX9J2xzpf2Udcf9+N3MvQWqmYl2YKsGpYM=";
|
2015-03-01 13:37:28 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 11:35:55 +00:00
|
|
|
sourceRoot = "${src.name}/src";
|
2015-03-01 13:37:28 +00:00
|
|
|
|
2021-03-20 11:35:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
pkg-config
|
|
|
|
which
|
2021-03-14 17:50:12 +00:00
|
|
|
bison
|
2021-03-20 11:35:55 +00:00
|
|
|
];
|
2015-03-01 13:37:28 +00:00
|
|
|
|
2021-03-20 11:35:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
gnuplot
|
|
|
|
libxml2
|
|
|
|
libzip
|
|
|
|
ncurses
|
2023-12-06 10:42:41 +00:00
|
|
|
] ++ lib.optionals xlsSupport [
|
|
|
|
libxls
|
|
|
|
libxlsxwriter
|
2021-03-20 11:35:55 +00:00
|
|
|
];
|
2018-02-21 13:16:13 +00:00
|
|
|
|
2021-03-20 11:35:55 +00:00
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
2015-03-01 13:37:28 +00:00
|
|
|
|
2021-03-20 11:35:55 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/sc-im" --prefix PATH : "${lib.makeBinPath [ gnuplot ]}"
|
2015-03-01 13:37:28 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-01-13 10:21:29 +00:00
|
|
|
changelog = "https://github.com/andmarti1424/sc-im/blob/${src.rev}/CHANGES";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/andmarti1424/sc-im";
|
2021-03-20 11:35:55 +00:00
|
|
|
description = "An ncurses spreadsheet program for terminal";
|
2016-02-07 13:42:22 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2021-03-20 11:35:55 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-05-23 15:49:02 +00:00
|
|
|
platforms = platforms.unix;
|
2015-03-01 13:37:28 +00:00
|
|
|
};
|
|
|
|
}
|