schroedinger: split outputs and doCheck

This commit is contained in:
Vladimír Čunát 2015-10-06 20:45:49 +02:00
parent cba6641623
commit e7b681297d

@ -1,4 +1,4 @@
{stdenv, fetchurl, orc, pkgconfig}:
{ stdenv, fetchurl, orc, pkgconfig }:
stdenv.mkDerivation {
name = "schroedinger-1.0.11";
@ -11,16 +11,12 @@ stdenv.mkDerivation {
sha256 = "04prr667l4sn4zx256v1z36a0nnkxfdqyln48rbwlamr6l3jlmqy";
};
buildInputs = [orc pkgconfig];
outputs = [ "dev" "out" "doc" ]; # dev-doc only
# The test suite is known not to build against Orc >0.4.16 in Schroedinger 1.0.11.
# A fix is in upstream, so test when pulling 1.0.12 if this is still needed. See:
# http://www.mail-archive.com/schrodinger-devel@lists.sourceforge.net/msg00415.html
preBuild = ''
substituteInPlace Makefile \
--replace "SUBDIRS = schroedinger doc tools testsuite" "SUBDIRS = schroedinger doc tools" \
--replace "DIST_SUBDIRS = schroedinger doc tools testsuite" "DIST_SUBDIRS = schroedinger doc tools"
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ orc ];
doCheck = true;
meta = with stdenv.lib; {
homepage = "http://diracvideo.org/";