esniper: fix build on darwin

This commit is contained in:
Jason \"Don\" O'Conal 2013-09-07 10:38:36 +10:00 committed by Peter Simons
parent a08837e957
commit 613cf79237
2 changed files with 14 additions and 12 deletions

View File

@ -19,12 +19,11 @@ stdenv.mkDerivation {
chmod 555 "$out/bin/snipe" chmod 555 "$out/bin/snipe"
''; '';
meta = { meta = with stdenv.lib; {
description = "Simple, lightweight tool for sniping eBay auctions"; description = "Simple, lightweight tool for sniping eBay auctions";
homepage = "http://esnipe.rsourceforge.net"; homepage = http://esnipe.rsourceforge.net;
license = "GPLv2"; license = licenses.gpl2;
maintainers = with maintainers; [ lovek323 simons ];
platforms = stdenv.lib.platforms.all; platforms = platforms.all;
maintainers = [ stdenv.lib.maintainers.simons ];
}; };
} }

View File

@ -27,11 +27,13 @@ stdenv.mkDerivation rec {
optional zlibSupport zlib ++ optional zlibSupport zlib ++
optional gssSupport gss ++ optional gssSupport gss ++
optional c-aresSupport c-ares ++ optional c-aresSupport c-ares ++
optional sslSupport openssl; optional sslSupport openssl ++
optional scpSupport libssh2;
preConfigure = '' preConfigure = ''
sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure
''; '';
configureFlags = [ configureFlags = [
( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" ) ( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" )
( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" ) ( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
@ -67,9 +69,10 @@ stdenv.mkDerivation rec {
inherit sslSupport openssl; inherit sslSupport openssl;
}; };
meta = { meta = with stdenv.lib; {
homepage = "http://curl.haxx.se/";
description = "A command line tool for transferring files with URL syntax"; description = "A command line tool for transferring files with URL syntax";
platforms = stdenv.lib.platforms.all; homepage = http://curl.haxx.se/;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.all;
}; };
} }