nixpkgs/pkgs/applications/misc/sc-im/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, pkg-config
, which
, bison
, gnuplot
, libxls
2021-04-22 13:49:26 +00:00
, libxlsxwriter
, libxml2
, libzip
, ncurses
, xlsSupport ? false
}:
2015-03-01 13:37:28 +00:00
stdenv.mkDerivation rec {
pname = "sc-im";
version = "0.8.3";
2015-03-01 13:37:28 +00:00
src = fetchFromGitHub {
owner = "andmarti1424";
repo = "sc-im";
rev = "v${version}";
sha256 = "sha256-QlnxMe0WsRX9J2xzpf2Udcf9+N3MvQWqmYl2YKsGpYM=";
2015-03-01 13:37:28 +00:00
};
sourceRoot = "${src.name}/src";
2015-03-01 13:37:28 +00:00
nativeBuildInputs = [
makeWrapper
pkg-config
which
bison
];
2015-03-01 13:37:28 +00:00
buildInputs = [
gnuplot
libxml2
libzip
ncurses
] ++ lib.optionals xlsSupport [
libxls
libxlsxwriter
];
2018-02-21 13:16:13 +00:00
makeFlags = [ "prefix=${placeholder "out"}" ];
2015-03-01 13:37:28 +00:00
postInstall = ''
wrapProgram "$out/bin/sc-im" --prefix PATH : "${lib.makeBinPath [ gnuplot ]}"
2015-03-01 13:37:28 +00:00
'';
meta = with lib; {
changelog = "https://github.com/andmarti1424/sc-im/blob/${src.rev}/CHANGES";
homepage = "https://github.com/andmarti1424/sc-im";
description = "An ncurses spreadsheet program for terminal";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ dotlambda ];
platforms = platforms.unix;
2015-03-01 13:37:28 +00:00
};
}