3
0
Fork 0
forked from mirrors/nixpkgs

sc-im: 0.2.1 -> 0.4.0

This commit is contained in:
Matthias Beyer 2017-01-03 12:34:23 +01:00
parent eb07e35554
commit be4caf3ef7

View file

@ -1,26 +1,23 @@
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2 }:
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2, pkgconfig }:
let
version = "0.2.1";
in
stdenv.mkDerivation rec {
version = "0.4.0";
name = "sc-im-${version}";
src = fetchFromGitHub {
owner = "andmarti1424";
repo = "sc-im";
rev = "v${version}";
sha256 = "0v6b8xksvd12vmz198vik2ranyr5mhnp85hl9yxh9svibs7jxsbb";
sha256 = "1v1cfmfqs5997bqlirp6p7smc3qrinq8dvsi33sk09r33zkzyar0";
};
buildInputs = [ yacc ncurses libxml2 ];
buildInputs = [ yacc ncurses libxml2 pkgconfig ];
buildPhase = ''
cd src
sed "s,prefix=/usr,prefix=$out," Makefile
sed "s,-I/usr/include/libxml2,-I$libxml2," Makefile
sed -i "s,prefix=/usr,prefix=$out," Makefile
sed -i "s,-I/usr/include/libxml2,-I$libxml2," Makefile
make
export DESTDIR=$out