mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
33a395f195
and add a new line after the alphabetically sorting to please my inner monk
57 lines
992 B
Nix
57 lines
992 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, pkg-config
|
|
, which
|
|
, bison
|
|
, gnuplot
|
|
, libxls
|
|
, libxml2
|
|
, libzip
|
|
, ncurses
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sc-im";
|
|
version = "0.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andmarti1424";
|
|
repo = "sc-im";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AIYa3d1ml1f5GNLKijeFPX+UabgEqzdXiP60BGvBPsQ=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/src";
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
pkg-config
|
|
which
|
|
bison
|
|
];
|
|
|
|
buildInputs = [
|
|
gnuplot
|
|
libxls
|
|
libxml2
|
|
libzip
|
|
ncurses
|
|
];
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/bin/sc-im" --prefix PATH : "${lib.makeBinPath [ gnuplot ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/andmarti1424/sc-im";
|
|
description = "An ncurses spreadsheet program for terminal";
|
|
license = licenses.bsdOriginal;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|