Adding libunrar installation, when building unrar.

svn path=/nixpkgs/trunk/; revision=19302
This commit is contained in:
Lluís Batlle i Rossell 2010-01-07 22:42:25 +00:00
parent 9dcfc5263b
commit de6f189743

View file

@ -7,9 +7,13 @@ stdenv.mkDerivation {
sha256 = "0inzy0jlwqm18i6lq17aq4n2baqqlbjyr6incw4s9cxrvmjq51ls";
};
makeFlags = "-f makefile.unix";
buildPhase = "make -f makefile.unix unrar lib CXXFLAGS=\"-fPIC -O2\"";
installPhase = "mkdir -p \${out}/bin/ ; cp unrar \${out}/bin/;";
installPhase = ''
mkdir -p $out/bin $out/lib
cp unrar $out/bin
cp libunrar.so $out/lib
'';
buildInputs = [];
}