Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 29 lines 866 B view raw
1{ stdenv, fetchFromGitHub, wxGTK, sqlite 2, darwin }: 3 4stdenv.mkDerivation rec { 5 name = "wxsqlite3-${version}"; 6 version = "3.3.1"; 7 8 src = fetchFromGitHub { 9 owner = "utelle"; 10 repo = "wxsqlite3"; 11 rev = "v${version}"; 12 sha1 = "bb8p58g88nkdcsj3h4acx7h925n2cy9g"; 13 }; 14 15 preBuild = stdenv.lib.optionalString stdenv.isDarwin '' 16 cp build28/Info.plist.in build28/wxmac.icns build/ 17 ''; 18 19 buildInputs = [ wxGTK sqlite ] 20 ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa darwin.stubs.setfile darwin.stubs.rez darwin.stubs.derez ]; 21 22 meta = with stdenv.lib; { 23 homepage = https://utelle.github.io/wxsqlite3/ ; 24 description = "A C++ wrapper around the public domain SQLite 3.x for wxWidgets"; 25 platforms = platforms.unix; 26 maintainers = with maintainers; [ vrthra ]; 27 license = [ licenses.lgpl2 ]; 28 }; 29}