base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / gr / grive2 / package.nix
blob9f6ea5acea1522daf9b8fbae58197910cf857df8
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
15 stdenv.mkDerivation rec {
16   version = "0.5.3";
17   pname = "grive2";
19   src = fetchFromGitHub {
20     owner = "vitalif";
21     repo = "grive2";
22     rev =  "v${version}";
23     sha256 = "sha256-P6gitA5cXfNbNDy4ohRLyXj/5dUXkCkOdE/9rJPzNCg=";
24   };
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   ];
36   nativeBuildInputs = [ cmake pkg-config ];
38   buildInputs = [ libgcrypt yajl curl expat boost libiberty ];
40   meta = with lib; {
41     description = "Console Google Drive client";
42     homepage = "https://github.com/vitalif/grive2";
43     license = licenses.gpl2Only;
44     platforms = platforms.linux;
45     mainProgram = "grive";
46   };