Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, fetchpatch 5, pkg-config 6, yajl 7, cmake 8, libgcrypt 9, curl 10, expat 11, boost 12, libiberty 13}: 14 15stdenv.mkDerivation rec { 16 version = "0.5.3"; 17 pname = "grive2"; 18 19 src = fetchFromGitHub { 20 owner = "vitalif"; 21 repo = "grive2"; 22 rev = "v${version}"; 23 sha256 = "sha256-P6gitA5cXfNbNDy4ohRLyXj/5dUXkCkOdE/9rJPzNCg="; 24 }; 25 26 patches = [ 27 # Backport gcc-12 support: 28 # https://github.com/vitalif/grive2/pull/363 29 (fetchpatch { 30 name = "gcc-12.patch"; 31 url = "https://github.com/vitalif/grive2/commit/3cf1c058a3e61deb370dde36024a106a213ab2c6.patch"; 32 hash = "sha256-v2Pb6Qvgml/fYzh/VCjOvEVnFYMkOHqROvLLe61DmKA="; 33 }) 34 ]; 35 36 nativeBuildInputs = [ cmake pkg-config ]; 37 38 buildInputs = [ libgcrypt yajl curl expat boost libiberty ]; 39 40 meta = with lib; { 41 description = "A console Google Drive client"; 42 homepage = "https://github.com/vitalif/grive2"; 43 license = licenses.gpl2; 44 platforms = platforms.linux; 45 }; 46}