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

57 lines
990 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, pkg-config
, which
, yacc
, gnuplot
, libxls
, libxml2
, libzip
, ncurses
}:
2015-03-01 14:37:28 +01:00
stdenv.mkDerivation rec {
pname = "sc-im";
2021-04-01 18:11:15 +02:00
version = "0.8.1";
2015-03-01 14:37:28 +01:00
src = fetchFromGitHub {
owner = "andmarti1424";
repo = "sc-im";
rev = "v${version}";
2021-04-01 18:11:15 +02:00
sha256 = "sha256-AIYa3d1ml1f5GNLKijeFPX+UabgEqzdXiP60BGvBPsQ=";
2015-03-01 14:37:28 +01:00
};
sourceRoot = "${src.name}/src";
2015-03-01 14:37:28 +01:00
nativeBuildInputs = [
makeWrapper
pkg-config
which
yacc
];
2015-03-01 14:37:28 +01:00
buildInputs = [
gnuplot
libxls
libxml2
libzip
ncurses
];
2018-02-21 14:16:13 +01:00
makeFlags = [ "prefix=${placeholder "out"}" ];
2015-03-01 14:37:28 +01:00
postInstall = ''
wrapProgram "$out/bin/sc-im" --prefix PATH : "${lib.makeBinPath [ gnuplot ]}"
2015-03-01 14:37:28 +01:00
'';
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;
2015-03-01 14:37:28 +01:00
};
}