lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 15.09-beta 45 lines 1.1 kB view raw
1{ pkgs ? import <nixpkgs> {} 2}: 3 4with pkgs; 5 6let 7 8in stdenv.mkDerivation rec { 9 version = "2.5.2"; 10 name = "redmine-${version}"; 11 __noChroot = true; 12 src = fetchurl { 13 url = "http://www.redmine.org/releases/${name}.tar.gz"; 14 sha256 = "0x0zwxyj4dwbk7l64s3lgny10mjf0ba8jwrbafsm4d72sncmacv0"; 15 }; 16 buildInputs = [ 17 ruby bundler libiconv libxslt libxml2 pkgconfig 18 libffi imagemagickBig postgresql which stdenv 19 ]; 20 installPhase = '' 21 unset http_proxy 22 unset ftp_proxy 23 24 cp -R . $out 25 cp ${./generate_nix_requirements.rb} $out/generate_nix_requirements.rb 26 cd $out 27 28 cat > config/database.yml <<EOF 29 production: 30 adapter: postgresql 31 EOF 32 33 bundle config --local build.nokogiri --use-system-libraries \ 34 --with-iconv-dir=${libiconv} \ 35 --with-xslt-dir=${libxslt} \ 36 --with-xml2-dir=${libxml2} \ 37 --with-pkg-config \ 38 --with-pg-config=${postgresql}/bin/pg_config 39 40 bundle install --verbose --without development test rmagick --path /tmp/redmine-${version} 41 42 HOME="/tmp/redmine-${version}" ruby generate_nix_requirements.rb 43 rm -R /tmp/gems 44 ''; 45}