nixpkgs/pkgs/applications/misc/scim/default.nix

43 lines
975 B
Nix
Raw Normal View History

2015-03-01 13:37:28 +00:00
{ stdenv, fetchurl, yacc, ncurses, libxml2 }:
let
2015-06-19 17:01:47 +00:00
version = "0.1.9";
2015-03-01 13:37:28 +00:00
in
stdenv.mkDerivation rec {
name = "scim-${version}";
src = fetchurl {
2016-01-22 12:07:46 +00:00
url = "https://github.com/andmarti1424/sc-im/archive/v${version}.tar.gz";
2015-06-19 17:01:47 +00: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
};
}