From c6ab53e9dbdf47ba8f6950e74ef6d65f7ca3379b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 1 Mar 2015 14:37:28 +0100 Subject: Add package: scim --- pkgs/applications/misc/scim/default.nix | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/applications/misc/scim/default.nix (limited to 'pkgs/applications/misc/scim/default.nix') diff --git a/pkgs/applications/misc/scim/default.nix b/pkgs/applications/misc/scim/default.nix new file mode 100644 index 000000000000..ef1bb0bed1dc --- /dev/null +++ b/pkgs/applications/misc/scim/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchurl, yacc, ncurses, libxml2 }: + +let + version = "0.1.8"; +in +stdenv.mkDerivation rec { + + name = "scim-${version}"; + + src = fetchurl { + url = "https://github.com/andmarti1424/scim/archive/v${version}.tar.gz"; + sha256 = "0qjixb1hzbdrypbmzwb2iaw5wp57kn7fmm1zpjp4gzjyanrhazs2"; + }; + + 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 + }; + +} -- cgit 1.4.1