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