package.nix (1261B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 perl, 7 pkg-config, 8 wget, 9 db, 10 libmicrohttpd, 11 jansson, 12 tcl, 13 }: 14 15 stdenv.mkDerivation (finalAttrs: { 16 pname = "graphene"; 17 version = "2.13"; 18 19 src = fetchFromGitHub { 20 owner = "slazav"; 21 repo = "graphene"; 22 tag = finalAttrs.version; 23 hash = "sha256-N7Pdf/8+Yi+OBRvJMkz2EyRQOsnBYs5BQeO20JP8tWA="; 24 fetchSubmodules = true; 25 }; 26 27 patches = [ 28 (fetchpatch { 29 url = "https://github.com/slazav/graphene/commit/76027a4a04e32a2d457934ab434788eeb27f60e4.patch"; 30 hash = "sha256-9IRrcgaW1Hmrw8ox+mDn1MzlZD/4RYH3qM2K91mW54M="; 31 }) 32 ]; 33 34 postPatch = '' 35 patchShebangs . 36 substituteInPlace graphene/Makefile --replace-fail "graphene_http.test2" "" 37 ''; 38 39 nativeBuildInputs = [ 40 perl 41 pkg-config 42 wget 43 ]; 44 45 buildInputs = [ 46 db 47 libmicrohttpd 48 jansson 49 tcl 50 ]; 51 52 installFlags = [ 53 "prefix=$(out)" 54 "sysconfdir=$(out)/etc" 55 ]; 56 57 doCheck = false; 58 59 meta = { 60 description = "A simple time series database based on BerkleyDB"; 61 homepage = "https://github.com/slazav/graphene"; 62 license = lib.licenses.gpl3; 63 maintainers = [ lib.maintainers.sikmir ]; 64 platforms = lib.platforms.linux; 65 skip.ci = stdenv.isDarwin; 66 }; 67 })
