1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/applications/misc/sc-im/default.nix

41 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, libzip, libxls, pkgconfig }:
2015-03-01 13:37:28 +00:00
stdenv.mkDerivation rec {
version = "0.5.0";
name = "sc-im-${version}";
2015-03-01 13:37:28 +00:00
src = fetchFromGitHub {
owner = "andmarti1424";
repo = "sc-im";
rev = "v${version}";
sha256 = "1vdn9p9srvdksxznrn65pfigwrd7brlq8bac3pjfqsvf8gjnzq61";
2015-03-01 13:37:28 +00:00
};
buildInputs = [ yacc ncurses libxml2 libzip libxls pkgconfig ];
2015-03-01 13:37:28 +00:00
buildPhase = ''
cd src
sed -e "\|^prefix = /usr/local| s|/usr/local|$out|" \
-e "\|^#LDLIBS += -lxlsreader| s|^#|| " \
-e "\|^#CFLAGS += -DXLS| s|^#|| " \
-i Makefile
2015-03-01 13:37:28 +00:00
make
export DESTDIR=$out
'';
installPhase = ''
make install prefix=
'';
meta = with stdenv.lib; {
homepage = "https://github.com/andmarti1424/sc-im";
description = "SC-IM - Spreadsheet Calculator Improvised - SC fork";
license = licenses.bsdOriginal;
maintainers = [ maintainers.matthiasbeyer ];
platforms = platforms.linux; # Cannot test others
2015-03-01 13:37:28 +00:00
};
}