diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-01-30 16:09:31 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-01-30 17:33:01 +0100 |
commit | 72c7b1af7f3b87dd8185ab9fef244a3f9b6bcf4d (patch) | |
tree | 3e0b86eb40d7c3bb5988aa6bcc8dc2183152cbf6 /pkgs/applications/misc/sc-im | |
parent | 1f2b819783d00f876865aee20cb63c477331a901 (diff) |
scim: 0.1.9 -> 0.2.1 (sc-im)
Move derivation definition to "sc-im", as project was renamed. Also change the license to BSD, which is what what-license.com detechted.
Diffstat (limited to 'pkgs/applications/misc/sc-im')
-rw-r--r-- | pkgs/applications/misc/sc-im/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/misc/sc-im/default.nix b/pkgs/applications/misc/sc-im/default.nix new file mode 100644 index 0000000000000..29f347522fa43 --- /dev/null +++ b/pkgs/applications/misc/sc-im/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, yacc, ncurses, libxml2 }: + +let + version = "0.2.1"; +in +stdenv.mkDerivation rec { + + name = "sc-im-${version}"; + + src = fetchurl { + url = "https://github.com/andmarti1424/sc-im/archive/v${version}.tar.gz"; + sha256 = "08yks8grj5w434r81dy2knzbdhdnkc23r0d9v848mcl706xnjl6j"; + }; + + 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/sc-im"; + description = "SC-IM - Spreadsheet Calculator Improvised - SC fork"; + license = stdenv.lib.licenses.bsdOriginal; + maintainers = [ stdenv.lib.maintainers.matthiasbeyer ]; + platforms = with stdenv.lib.platforms; linux; # Cannot test others + }; + +} |