default.nix (1030B)
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.13"; 17 18 src = fetchFromGitHub { 19 owner = "slazav"; 20 repo = "graphene"; 21 tag = finalAttrs.version; 22 hash = "sha256-N7Pdf/8+Yi+OBRvJMkz2EyRQOsnBYs5BQeO20JP8tWA="; 23 fetchSubmodules = true; 24 }; 25 26 postPatch = '' 27 patchShebangs . 28 substituteInPlace graphene/Makefile --replace-fail "graphene_http.test2" "" 29 ''; 30 31 nativeBuildInputs = [ 32 perl 33 pkg-config 34 wget 35 ]; 36 37 buildInputs = [ 38 db 39 libmicrohttpd 40 jansson 41 tcl 42 ]; 43 44 installFlags = [ 45 "prefix=$(out)" 46 "sysconfdir=$(out)/etc" 47 ]; 48 49 doCheck = false; 50 51 meta = { 52 description = "A simple time series database based on BerkleyDB"; 53 homepage = "https://github.com/slazav/graphene"; 54 license = lib.licenses.gpl3; 55 maintainers = [ lib.maintainers.sikmir ]; 56 platforms = lib.platforms.linux; 57 skip.ci = stdenv.isDarwin; 58 }; 59 })