4store: 1.1.5 -> 1.1.6 (convert from builderDefsPackage)

+34 -38
+34 -38
pkgs/servers/http/4store/default.nix
··· 1 - x@{builderDefsPackage 2 - , librdf_raptor, librdf_rasqal, 3 - glib, libxml2, pcre, avahi, 4 - readline, ncurses, expat, 5 - zlib, pkgconfig, which, 6 - perl, libuuid, gmp, mpfr 7 - , db_dir ? "/var/lib/4store" 8 - , ...}: 9 - builderDefsPackage 10 - (a : 11 - let 12 - s = import ./src-for-default.nix; 13 - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 14 - ["db_dir"]; 15 - buildInputs = map (n: builtins.getAttr n x) 16 - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); 17 - in 18 - rec { 19 - src = a.fetchUrlFromSrcInfo s; 1 + { stdenv, fetchFromGitHub, librdf_raptor 2 + , librdf_rasqal, glib, libxml2, pcre 3 + , avahi, readline, ncurses, expat, autoreconfHook 4 + , zlib, pkgconfig, which, perl, libuuid 5 + , gmp, mpfr 6 + , db_dir ? "/var/lib/4store" }: 20 7 21 - inherit (s) name; 22 - inherit buildInputs; 23 8 24 - /* doConfigure should be removed if not needed */ 25 - phaseNames = ["doFixConfigure" "doConfigure" "doMakeInstall" 26 - "fixInterpreter"]; 9 + stdenv.mkDerivation rec { 10 + name = "4store-${version}"; 11 + version = "1.1.6"; 27 12 28 - doFixConfigure = a.fullDepEntry '' 29 - sed -e 's@#! */bin/bash@#! ${a.stdenv.shell}@' -i configure 13 + src = fetchFromGitHub { 14 + owner = "garlik"; 15 + repo = "4store"; 16 + rev = "v${version}"; 17 + sha256 = "1kzdfmwpzy64cgqlkcz5v4klwx99w0jk7afckyf7yqbqb4rydmpk"; 18 + }; 19 + 20 + buildInputs = [ librdf_raptor librdf_rasqal glib libxml2 pcre 21 + avahi readline ncurses expat zlib pkgconfig which perl libuuid 22 + gmp mpfr autoreconfHook ]; 23 + 24 + # needed for ./autogen.sh 25 + prePatch = '' 26 + echo "${version}" > .version 27 + ''; 28 + 29 + preConfigure = '' 30 + sed -e 's@#! */bin/bash@#! ${stdenv.shell}@' -i configure 30 31 find . -name Makefile -exec sed -e "s@/usr/local@$out@g" -i '{}' ';' 31 32 32 - sed -e 's@/var/lib/4store@${db_dir}@g' -i src/common/params.h src/utilities/* 33 + rm src/utilities/4s-backend 34 + sed -e 's@/var/lib/4store@${db_dir}@g' -i configure.ac src/utilities/* 33 35 sed -e '/FS_STORE_ROOT/d' -i src/utilities/Makefile* 34 - '' ["minInit" "doUnpack"]; 36 + ''; 35 37 36 - fixInterpreter = (a.doPatchShebangs "$out/bin"); 37 - 38 - meta = { 38 + meta = with stdenv.lib; { 39 39 description = "SparQL query server (RDF storage)"; 40 40 homepage = http://4store.org/; 41 - maintainers = with a.lib.maintainers; 42 - [ 43 - raskin 44 - ]; 45 - platforms = with a.lib.platforms; 46 - linux; 41 + maintainers = with maintainers; [ raskin ]; 42 + platforms = platforms.linux; 47 43 }; 48 - }) x 44 + }