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