default.nix (865B)
1 { lib 2 , stdenv 3 , fetchFromGitHub 4 , perl 5 , pkg-config 6 , wget 7 , db 8 , libmicrohttpd 9 , jansson 10 , tcl 11 }: 12 13 stdenv.mkDerivation (finalAttrs: { 14 pname = "graphene"; 15 version = "2.13"; 16 17 src = fetchFromGitHub { 18 owner = "slazav"; 19 repo = "graphene"; 20 rev = finalAttrs.version; 21 hash = "sha256-N7Pdf/8+Yi+OBRvJMkz2EyRQOsnBYs5BQeO20JP8tWA="; 22 fetchSubmodules = true; 23 }; 24 25 postPatch = '' 26 patchShebangs . 27 ''; 28 29 nativeBuildInputs = [ perl pkg-config wget ]; 30 31 buildInputs = [ db libmicrohttpd jansson tcl ]; 32 33 installFlags = [ "prefix=$(out)" "sysconfdir=$(out)/etc" ]; 34 35 meta = with lib; { 36 description = "A simple time series database based on BerkleyDB"; 37 inherit (finalAttrs.src.meta) homepage; 38 license = licenses.gpl3; 39 maintainers = [ maintainers.sikmir ]; 40 platforms = platforms.linux; 41 skip.ci = stdenv.isDarwin; 42 }; 43 })