nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 58 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 pkg-config, 7 yajl, 8 cmake, 9 libgcrypt, 10 curl, 11 expat, 12 boost, 13 libiberty, 14}: 15 16stdenv.mkDerivation rec { 17 version = "0.5.3"; 18 pname = "grive2"; 19 20 src = fetchFromGitHub { 21 owner = "vitalif"; 22 repo = "grive2"; 23 rev = "v${version}"; 24 sha256 = "sha256-P6gitA5cXfNbNDy4ohRLyXj/5dUXkCkOdE/9rJPzNCg="; 25 }; 26 27 patches = [ 28 # Backport gcc-12 support: 29 # https://github.com/vitalif/grive2/pull/363 30 (fetchpatch { 31 name = "gcc-12.patch"; 32 url = "https://github.com/vitalif/grive2/commit/3cf1c058a3e61deb370dde36024a106a213ab2c6.patch"; 33 hash = "sha256-v2Pb6Qvgml/fYzh/VCjOvEVnFYMkOHqROvLLe61DmKA="; 34 }) 35 ]; 36 37 nativeBuildInputs = [ 38 cmake 39 pkg-config 40 ]; 41 42 buildInputs = [ 43 libgcrypt 44 yajl 45 curl 46 expat 47 boost 48 libiberty 49 ]; 50 51 meta = with lib; { 52 description = "Console Google Drive client"; 53 homepage = "https://github.com/vitalif/grive2"; 54 license = licenses.gpl2Only; 55 platforms = platforms.linux; 56 mainProgram = "grive"; 57 }; 58}