3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/scim/default.nix

43 lines
974 B
Nix
Raw Normal View History

2015-03-01 13:37:28 +00:00
{ stdenv, fetchurl, yacc, ncurses, libxml2 }:
let
2015-06-19 18:01:47 +01:00
version = "0.1.9";
2015-03-01 13:37:28 +00:00
in
stdenv.mkDerivation rec {
name = "scim-${version}";
src = fetchurl {
url = "https://github.com/andmarti1424/scim/archive/v${version}.tar.gz";
2015-06-19 18:01:47 +01:00
sha256 = "00rjz344acw0bxv78x1w9jz8snl9lb9qhr9z22phxinidnd3vaaz";
2015-03-01 13:37:28 +00:00
};
buildInputs = [ yacc ncurses libxml2 ];
buildPhase = ''
cd src
sed "s,prefix=/usr,prefix=$out," Makefile
sed "s,-I/usr/include/libxml2,-I$libxml2," Makefile
make
export DESTDIR=$out
'';
installPhase = ''
make install prefix=
'';
meta = {
homepage = "https://github.com/andmarti1424/scim";
description = "SCIM - Spreadsheet Calculator Improvised - SC fork";
license = {
fullName = "SCIM License";
url = "https://github.com/andmarti1424/scim/raw/master/LICENSE";
};
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
platforms = with stdenv.lib.platforms; linux; # Cannot test others
};
}