mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
esniper: fix build on darwin
This commit is contained in:
parent
a08837e957
commit
613cf79237
2 changed files with 14 additions and 12 deletions
|
@ -4,11 +4,11 @@ stdenv.mkDerivation {
|
|||
name = "esniper-2.28.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/esniper/esniper-2-28-0.tgz";
|
||||
url = "mirror://sourceforge/esniper/esniper-2-28-0.tgz";
|
||||
sha256 = "c2b0ccb757616b32f2d6cf54a4a5e367405fa7bcd6e6ed11835fe4f8a06a016b";
|
||||
};
|
||||
|
||||
buildInputs = [openssl curl];
|
||||
buildInputs = [ openssl curl ];
|
||||
|
||||
# Add support for CURL_CA_BUNDLE variable.
|
||||
patches = [ ./find-ca-bundle.patch ];
|
||||
|
@ -19,12 +19,11 @@ stdenv.mkDerivation {
|
|||
chmod 555 "$out/bin/snipe"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simple, lightweight tool for sniping eBay auctions";
|
||||
homepage = "http://esnipe.rsourceforge.net";
|
||||
license = "GPLv2";
|
||||
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||
homepage = http://esnipe.rsourceforge.net;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ lovek323 simons ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -27,11 +27,13 @@ stdenv.mkDerivation rec {
|
|||
optional zlibSupport zlib ++
|
||||
optional gssSupport gss ++
|
||||
optional c-aresSupport c-ares ++
|
||||
optional sslSupport openssl;
|
||||
optional sslSupport openssl ++
|
||||
optional scpSupport libssh2;
|
||||
|
||||
preConfigure = ''
|
||||
sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" )
|
||||
( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
|
||||
|
@ -67,9 +69,10 @@ stdenv.mkDerivation rec {
|
|||
inherit sslSupport openssl;
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "http://curl.haxx.se/";
|
||||
meta = with stdenv.lib; {
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue